PHP Trait XPSPL\State

Since: 0.3.0 State is as it implies, state of a given object.
Afficher le fichier Open project: prggmr/xpspl

Protected Properties

Свойство Type Description
$_state integer Current state of the object.

Méthodes publiques

Méthode Description
__construct ( ) : void Constructs a new state object.
get_state ( ) : integer Returns the current event state.
set_state ( integer $state ) : void Set the object state.

Method Details

__construct() public méthode

Constructs a new state object.
public __construct ( ) : void
Résultat void

get_state() final public méthode

Returns the current event state.
final public get_state ( ) : integer
Résultat integer Current state of this event.

set_state() final public méthode

Set the object state.
final public set_state ( integer $state ) : void
$state integer State of the object.
Résultat void

Property Details

$_state protected_oe property

Current state of the object.
protected int $_state
Résultat integer