public getProperties ( ) : Zend\Code\Scanner\PropertyScanner[] | ||
Результат | Zend\Code\Scanner\PropertyScanner[] |
public function getProperties()
{
$this->scan();
$return = [];
foreach ($this->infos as $info) {
if ($info['type'] != 'property') {
continue;
}
$return[] = $this->getProperty($info['name']);
}
return $return;
}
/** * @param bool $returnScannerProperty * @return array */ public function getProperties($returnScannerProperty = false) { $properties = $this->classScanner->getProperties($returnScannerProperty); foreach ($this->parentClassScanners as $pClassScanner) { $properties = array_merge($properties, $pClassScanner->getProperties($returnScannerProperty)); } return $properties; }