public function load($class) { $meta = array(); $ref = new \Nette\Reflection\ClassType($class); do { foreach ($ref->getProperties() as $property) { $m = $this->processProperty($property); if ($m) { $meta[$m->name] = $m; } } $ref = $ref->getParentClass(); } while ($ref); return $meta; }