/**
* Adds a link to the workflow.
*
* @param string $src
* @param string $dst
* @param SpecificationInterface $spec
*
* @return Builder
*
* @throws Exception\NoStartingNodeBuilderException
*/
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;
}