private function createDependencies(array $fromTo) { foreach ($fromTo as $from => $to) { (yield new Dependency($from, 0, $to)); } }