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());
 }