Imbo\Auth\AccessControl\Adapter\SimpleArrayAdapter::isEmpty PHP Метод

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

Returns whether the access control list is empty or not
public isEmpty ( ) : boolean
Результат boolean True if list is empty, false otherwise
    public function isEmpty()
    {
        return empty($this->accessList);
    }

Usage Example

Пример #1
0
 public function testIsEmpty()
 {
     $accessControl = new SimpleArrayAdapter();
     $this->assertTrue($accessControl->isEmpty());
     $accessControl = new SimpleArrayAdapter(['foo' => 'bar']);
     $this->assertFalse($accessControl->isEmpty());
 }