original_string: private function decideAffirmative(TokenInterface $token, array $attributes, $object = null)
      {
          $deny = 0;
          foreach ($this->voters as $voter) {
              $result = $voter->vote($token, $object, $attributes);
              switch ($result) {
                  case VoterInterface::ACCESS_GRANTED:
                      return true;
  
                  case VoterInterface::ACCESS_DENIED:
                      ++$deny;
  
                      break;
  
                  default:
                      break;
              }
          }
  
          if ($deny > 0) {
              return false;
          }
  
          return $this->allowIfAllAbstainDecisions;
      }
code: private function decideAffirmative(TokenInterface $token, array $attributes, $object = null)
      {
          $deny = 0;
          foreach ($this->voters as $voter) {
              $result = $voter->vote($token, $object, $attributes);
              switch ($result) {
                  case VoterInterface::ACCESS_GRANTED:
                      return true;
  
                  case VoterInterface::ACCESS_DENIED:
                      ++$deny;
  
                      break;
  
                  default:
                      break;
              }
          }
  
          if ($deny > 0) {
              return false;
          }
  
          return $this->allowIfAllAbstainDecisions;
      }
code_tokens: private function decideAffirmative ( TokenInterface $ token , array $ attributes , $ object = null ) { $ deny = 0 ; foreach ( $ this -> voters as $ voter ) { $ result = $ voter -> vote ( $ token , $ object , $ attributes ) ; switch ( $ result ) { case VoterInterface :: ACCESS_GRANTED : return true ; case VoterInterface :: ACCESS_DENIED : ++ $ deny ; break ; default : break ; } } if ( $ deny > 0 ) { return false ; } return $ this -> allowIfAllAbstainDecisions ; }
docstring: Grants access if any voter returns an affirmative response.
  
  If all voters abstained from voting, the decision will be based on the
  allowIfAllAbstainDecisions property value (defaults to false).
docstring_tokens: Grants access if any voter returns an affirmative response .