Ejemplo n.º 1
0
 /**
  * Gets names of all classes this object is instance of.
  *
  * @return array
  */
 private function getThisClasses()
 {
     return Utils::getWholeLineageOfClass(get_class($this));
 }
Ejemplo n.º 2
0
 private function parseNavigationAnnotations()
 {
     foreach (Utils::getWholeLineageOfClass(get_class($this)) as $className) {
         $classAnnotations = Utils::getClassAnnotations($className);
         if (isset($classAnnotations['presenterName'])) {
             $this->presenterName = reset($classAnnotations['presenterName']);
         }
         if (isset($classAnnotations['presenterParameters'])) {
             $this->presenterParameters = reset($classAnnotations['presenterParameters']);
         }
         if (isset($classAnnotations['url'])) {
             $this->url = reset($classAnnotations['url']);
         }
     }
 }