public function __construct($name) { parent::__construct($name); $this->transitions = new \SplObjectStorage(); $this->events = new NamedCollection(); $this->metadata = new Nullable(); }