PHP Trait XPSPL\State

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

Protected Properties

Property Type Description
$_state integer Current state of the object.

Public Methods

Method 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 method

Constructs a new state object.
public __construct ( ) : void
return void

get_state() final public method

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

set_state() final public method

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

Property Details

$_state protected property

Current state of the object.
protected int $_state
return integer