PHPSA\ScopePointer::isClassMethod PHP Method

isClassMethod() public method

Is the object a class method?
public isClassMethod ( ) : boolean
return boolean
    public function isClassMethod()
    {
        return $this->object instanceof ClassMethod;
    }

Usage Example

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