Metabor\NamedCollection::get PHP Method

get() public method

public get ( $name )
    public function get($name)
    {
        return $this->collection[$name];
    }

Usage Example

Example #1
0
 /**
  * @see MetaborStd\Statemachine.StateInterface::getEvent()
  */
 public function getEvent($name)
 {
     if ($this->events->has($name)) {
         $event = $this->events->get($name);
     } else {
         $event = new Event($name);
         $this->events->add($event);
     }
     return $event;
 }
All Usage Examples Of Metabor\NamedCollection::get