public function addParent(LocationInterface $location)
    {
        if (!$this->parents->contains($location)) {
            $this
                ->parents
                ->add($location);

            $location->addChildren($this);
        }

        return $this;
    }
public function addParent(LocationInterface $location)
    {
        if (!$this->parents->contains($location)) {
            $this
                ->parents
                ->add($location);

            $location->addChildren($this);
        }

        return $this;
    }
public function addParent ( LocationInterface $ location ) { if ( ! $ this -> parents -> contains ( $ location ) ) { $ this -> parents -> add ( $ location ) ; $ location -> addChildren ( $ this ) ; } return $ this ; }
Add parent Location.

@param LocationInterface $location Location

@return $this Self object
Add parent Location .