izzum\statemachine\Identifier::getEntityId PHP Метод

getEntityId() публичный Метод

gets the entity id that represents the unique identifier for the application domain specific model.
public getEntityId ( ) : string
Результат string
    public function getEntityId()
    {
        return $this->entity_id;
    }

Usage Example

 /**
  *
  * @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;
 }
All Usage Examples Of izzum\statemachine\Identifier::getEntityId