/**
* @param DependencyInterface $dependency
*
* @return $this
*/
public function addInheritDependency(DependencyInterface $dependency)
{
if (!isset($this->inheritDependencies[$dependency->getClassA()])) {
$this->inheritDependencies[$dependency->getClassA()] = [];
}
$this->inheritDependencies[$dependency->getClassA()][] = $dependency;
return $this;
}