PHP Класс AppserverIo\Appserver\Application\ApplicationStateKeys

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
__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.

Описание методов

__toString() публичный метод

Returns the application state representation as string.
См. также: AppserverIo\Appserver\Core\Utilities\ApplicationStateKeys::getApplicationState()
public __toString ( ) : string
Результат string The string representation of the application state

equals() публичный метод

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
Результат boolean TRUE if equal, else FALSE

get() публичный статический метод

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
Результат ApplicationStateKeys The application state key instance

getApplicationState() публичный метод

Returns the application state representation as integer.
public getApplicationState ( ) : integer
Результат integer The integer representation of the application state

getApplicationStates() публичный статический метод

Returns the container states.
public static getApplicationStates ( ) : array
Результат array The container states

greaterOrEqualThan() публичный метод

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
Результат boolean TRUE if equal, else FALSE

notEquals() публичный метод

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
Результат boolean TRUE if NOT equal, else FALSE