public function getProperties()
{
if (null !== $this->cachedProperties) {
return $this->cachedProperties;
}
$properties = [];
foreach ($this->node->stmts as $stmt) {
if ($stmt instanceof PropertyNode) {
$prop = ReflectionProperty::createFromNode($this->reflector, $stmt, $this);
$properties[$prop->getName()] = $prop;
}
}
$this->cachedProperties = $properties;
return $properties;
}