izzum\statemachine\Identifier::getMachine PHP Method

getMachine() public method

gets the statemachine name that handles the entity
public getMachine ( ) : string
return string
    public function getMachine()
    {
        return $this->machine_name;
    }

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::getMachine