fkooman\OAuth\Client\Scope::isEmpty PHP Method

isEmpty() public method

public isEmpty ( )
    public function isEmpty()
    {
        return 0 === count($this->scope);
    }

Usage Example

Example #1
0
 public function testEmptyScope()
 {
     $s = new Scope();
     $this->assertTrue($s->isEmpty());
     $this->assertTrue($s->equals(new Scope()));
     $this->assertFalse($s->hasScope(new Scope(array('foo'))));
     $this->assertTrue($s->hasScope(new Scope()));
     $this->assertTrue($s->hasAnyScope(new Scope()));
 }
All Usage Examples Of fkooman\OAuth\Client\Scope::isEmpty