Metabor\Named::__construct PHP Method

__construct() public method

public __construct ( string $name )
$name string
    public function __construct($name)
    {
        $this->setName($name);
    }

Usage Example

Example #1
0
 /**
  *
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->transitions = new SplObjectStorage();
     $this->events = new NamedCollection();
     $this->metadata = new Nullable();
 }
All Usage Examples Of Metabor\Named::__construct