src/Sulu/Bundle/CategoryBundle/Api/Category.php
public function getParent()
    {
        $parent = $this->getEntity()->getParent();
        if ($parent) {
            return new self($parent, $this->locale);
        }

        return;
    }
public function getParent()
    {
        $parent = $this->getEntity()->getParent();
        if ($parent) {
            return new self($parent, $this->locale);
        }

        return;
    }
public function getParent ( ) { $ parent = $ this -> getEntity ( ) -> getParent ( ) ; if ( $ parent ) { return new self ( $ parent , $ this -> locale ) ; } return ; }
Returns a parent category if one exists.

@return null|Category
Returns a parent category if one exists .