PHP Class AppserverIo\Appserver\Application\ApplicationStateKeys

Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Méthodes publiques

Méthode Description
__toString ( ) : string Returns the application state representation as string.
equals ( ApplicationStateKeys $applicationState ) : boolean Returns TRUE if the passed application state equals the actual one, else FALSE.
get ( integer $applicationState ) : ApplicationStateKeys Factory method to create a new application state instance.
getApplicationState ( ) : integer Returns the application state representation as integer.
getApplicationStates ( ) : array Returns the container states.
greaterOrEqualThan ( ApplicationStateKeys $containerState ) : boolean Returns TRUE if the container state is greater than the passed one, else FALSE.
notEquals ( ApplicationStateKeys $applicationState ) : boolean Returns TRUE if the passed application state NOT equals the actual one, else FALSE.

Private Methods

Méthode Description
__clone ( ) : void This is a utility class, so protect it against cloning.
__construct ( integer $applicationState ) This is a utility class, so protect it against direct instantiation.

Method Details

__toString() public méthode

Returns the application state representation as string.
See also: AppserverIo\Appserver\Core\Utilities\ApplicationStateKeys::getApplicationState()
public __toString ( ) : string
Résultat string The string representation of the application state

equals() public méthode

Returns TRUE if the passed application state equals the actual one, else FALSE.
public equals ( ApplicationStateKeys $applicationState ) : boolean
$applicationState ApplicationStateKeys The container state to check
Résultat boolean TRUE if equal, else FALSE

get() public static méthode

Factory method to create a new application state instance.
public static get ( integer $applicationState ) : ApplicationStateKeys
$applicationState integer The application state to create an instance for
Résultat ApplicationStateKeys The application state key instance

getApplicationState() public méthode

Returns the application state representation as integer.
public getApplicationState ( ) : integer
Résultat integer The integer representation of the application state

getApplicationStates() public static méthode

Returns the container states.
public static getApplicationStates ( ) : array
Résultat array The container states

greaterOrEqualThan() public méthode

Returns TRUE if the container state is greater than the passed one, else FALSE.
public greaterOrEqualThan ( ApplicationStateKeys $containerState ) : boolean
$containerState ApplicationStateKeys The container state to be greater than
Résultat boolean TRUE if equal, else FALSE

notEquals() public méthode

Returns TRUE if the passed application state NOT equals the actual one, else FALSE.
public notEquals ( ApplicationStateKeys $applicationState ) : boolean
$applicationState ApplicationStateKeys The container state to check NOT to be equal
Résultat boolean TRUE if NOT equal, else FALSE