public function setParentDirective(Directive $parentDirective)
    {
        $this->parentDirective = $parentDirective;

        if ($parentDirective->getChildScope() !== $this) {
            $parentDirective->setChildScope($this);
        }

        return $this;
    }
public function setParentDirective(Directive $parentDirective)
    {
        $this->parentDirective = $parentDirective;

        if ($parentDirective->getChildScope() !== $this) {
            $parentDirective->setChildScope($this);
        }

        return $this;
    }
public function setParentDirective ( Directive $ parentDirective ) { $ this -> parentDirective = $ parentDirective ; if ( $ parentDirective -> getChildScope ( ) !== $ this ) { $ parentDirective -> setChildScope ( $ this ) ; } return $ this ; }
Set parent directive for this Scope.

Sets parent directive for this Scope and also
sets the $parentDirective->setChildScope($this)

@param Directive $parentDirective
@return $this
Set parent directive for this Scope .