getProperty() 공개 메소드

Gets the property name associated with an accessor method.
public getProperty ( string $methodName ) : string | null
$methodName string
리턴 string | null
예제 #1
0
 public function testWithBadMethodName()
 {
     $methodName = 'delGerard';
     $reflection = new Reflection();
     $return = $reflection->getProperty($methodName);
     $this->assertNotEquals($return, 'Gerard');
     $this->assertEquals($return, null);
 }