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

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

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

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