code: public function addDependencies($name, $entities = null, array $options = null)
      {
          return $this->dependencyResultCollection->add($name, $entities, $options);
      }
docs: Shortcut to add dependencies to the collection.
  
  @param string|\Traversable|array $name
  @param null|array|\Traversable       $entities
  @param array|null $options
  
  @return DependencyResultCollection