Author: Oliver Tischlinger
Inheritance: implements MetaborStd\NamedInterface
Exemple #1
0
 /**
  *
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->transitions = new SplObjectStorage();
     $this->events = new NamedCollection();
     $this->metadata = new Nullable();
 }
Exemple #2
0
 /**
  * @param string         $name
  * @param StateInterface $initialState
  */
 public function __construct($name, StateInterface $initialState)
 {
     parent::__construct($name);
     $this->initialState = $initialState;
     $this->createCollection();
     $this->initProcess(new SetupHelper($this->states));
 }
 /**
  *
  * @param string   $name
  * @param callable $callable
  */
 public function __construct($name, $callable)
 {
     parent::__construct($name);
     if (!is_callable($callable)) {
         throw new InvalidArgumentException('Argument is not callable!');
     }
     $this->callable = $callable;
 }
 /**
  * @param string             $name
  * @param array              $values
  * @param ExpressionLanguage $expressionLanguage
  */
 public function __construct($name, array $values = array(), ExpressionLanguage $expressionLanguage = null)
 {
     parent::__construct($name);
     $this->values = $values;
     if ($expressionLanguage) {
         $this->expressionLanguage = $expressionLanguage;
     } else {
         $this->expressionLanguage = new ExpressionLanguage();
     }
 }
Exemple #5
0
 /**
  * @param string         $name
  * @param StateInterface $initialState
  */
 public function __construct($name, StateInterface $initialState)
 {
     parent::__construct($name);
     $this->initialState = $initialState;
     $this->createCollection();
 }