supportsClass() публичный Метод

Checks if the voter supports the given class.
public supportsClass ( string $class ) : true
$class string A class name
Результат true if this Voter can process the class
Пример #1
0
 /**
  * @dataProvider supportsClassProvider
  */
 public function testSupportsClass($class)
 {
     $voter = new CoreVoter($this->repository);
     $this->assertTrue($voter->supportsClass($class));
 }