/**
*
* @param Identifier $identifier
* @param string $state
*/
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;
}