eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::supportsClass PHP Méthode

supportsClass() public méthode

Checks if the voter supports the given class.
public supportsClass ( string $class ) : true
$class string A class name
Résultat true if this Voter can process the class
    public function supportsClass($class)
    {
        return true;
    }

Usage Example

 /**
  * @dataProvider supportsClassProvider
  */
 public function testSupportsClass($class)
 {
     $voter = new CoreVoter($this->repository);
     $this->assertTrue($voter->supportsClass($class));
 }