public function link($src, $dst, SpecificationInterface $spec) { if (null === $this->start) { throw new Exception\NoStartingNodeBuilderException(); } $this->nodes->get($src)->addTransition($this->nodes->get($dst), $spec); return $this; }