public __construct ( |
||
$identifier | ||
$state | string |
public function __construct(Identifier $identifier, $state, $message = null)
{
$this->id = $identifier->getEntityId();
$this->machine = $identifier->getMachine();
$this->state = $state;
$this->timestamp = time();
$this->message = $message;
}