private function voteForPage(TokenInterface $token, Page $page, array $attributes)
    {
        if (self::ACCESS_DENIED === $result = $this->voteForObject($token, $page, $attributes)) {
            if (null !== $page->getParent()) {
                $result = $this->voteForPage($token, $page->getParent(), $attributes);
            }
        }

        return $result;
    }
private function voteForPage(TokenInterface $token, Page $page, array $attributes)
    {
        if (self::ACCESS_DENIED === $result = $this->voteForObject($token, $page, $attributes)) {
            if (null !== $page->getParent()) {
                $result = $this->voteForPage($token, $page->getParent(), $attributes);
            }
        }

        return $result;
    }
private function voteForPage ( TokenInterface $ token , Page $ page , array $ attributes ) { if ( self :: ACCESS_DENIED === $ result = $ this -> voteForObject ( $ token , $ page , $ attributes ) ) { if ( null !== $ page -> getParent ( ) ) { $ result = $ this -> voteForPage ( $ token , $ page -> getParent ( ) , $ attributes ) ; } } return $ result ; }
Returns the vote for page object, recursively till root.

@param \Symfony\Component\Security\Core\Authentication\Token\TokenInterface  $token
@param  \BackBee\NestedNode\Page                                             $page
@param  array                                                                $attributes
@return integer                                                              either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
Returns the vote for page object recursively till root .