PHPSA\ScopePointer::isClassMethod PHP Метод

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

Is the object a class method?
public isClassMethod ( ) : boolean
Результат boolean
    public function isClassMethod()
    {
        return $this->object instanceof ClassMethod;
    }

Usage Example

Пример #1
0
 /**
  * @covers \PHPSA\ScopePointer::isClassMethod()
  * @dataProvider notClassMethodDataProvider
  */
 public function testIsNotClassMethod($object)
 {
     $scopePointer = new ScopePointer($object);
     $this->assertFalse($scopePointer->isClassMethod());
 }