public function isOwner(User $user)
    {
        $owner = $this->getOwner();
        if ($owner !== null && $user->getId() === $owner->getUser()->getId()) {
            return true;
        }

        return false;
    }
public function isOwner(User $user)
    {
        $owner = $this->getOwner();
        if ($owner !== null && $user->getId() === $owner->getUser()->getId()) {
            return true;
        }

        return false;
    }
public function isOwner ( User $ user ) { $ owner = $ this -> getOwner ( ) ; if ( $ owner !== null && $ user -> getId ( ) === $ owner -> getUser ( ) -> getId ( ) ) { return true ; } return false ; }
Returns a boolean indicating whether the given user is the owner of the feed.

@param User $user

@return boolean
Returns a boolean indicating whether the given user is the owner of the feed .