Verify if class has property
public hasProperty ( string $name ) : boolean | ||
$name | string | |
리턴 | boolean |
/** * Verify if class or parent class has property * * @param string $name * @return bool */ public function hasProperty($name) { if ($this->classScanner->hasProperty($name)) { return true; } foreach ($this->parentClassScanners as $pClassScanner) { if ($pClassScanner->hasProperty($name)) { return true; } } return false; }