abstract class StubIntl extends IntlGlobals
Alias of {@link \Symfony\Component\Intl\Globals\IntlGlobals}.
Constants
| U_ZERO_ERROR |
Indicates that no error occurred |
| U_ILLEGAL_ARGUMENT_ERROR |
Indicates that an invalid argument was passed |
| U_PARSE_ERROR |
Indicates that the parse() operation failed |
Methods
| static Boolean |
isFailure(integer $errorCode)
Returns whether the error code indicates a failure |
from IntlGlobals |
| static integer |
getErrorCode()
Returns the error code of the last operation |
from IntlGlobals |
| static string |
getErrorMessage()
Returns the error message of the last operation |
from IntlGlobals |
| static string |
getErrorName(integer $code)
Returns the symbolic name for a given error code |
from IntlGlobals |
| static |
setError(integer $code, string $message = '')
Sets the current error |
from IntlGlobals |
Details
in IntlGlobals at line 74
static public Boolean
isFailure(integer $errorCode)
Returns whether the error code indicates a failure
in IntlGlobals at line 87
static public integer
getErrorCode()
Returns the error code of the last operation
Returns IntlGlobals::U_ZERO_ERROR if no error occurred.
in IntlGlobals at line 99
static public string
getErrorMessage()
Returns the error message of the last operation
Returns "U_ZERO_ERROR" if no error occurred.
in IntlGlobals at line 111
static public string
getErrorName(integer $code)
Returns the symbolic name for a given error code
in IntlGlobals at line 128
static public
setError(integer $code, string $message = '')
Sets the current error