Exemplo n.º 1
0
 /**
  * @return Reflection_Class[]
  */
 public function getTraits()
 {
     if (!isset($this->traits)) {
         $this->scanUntilClassEnds();
     }
     foreach ($this->traits as $trait_name => $trait) {
         if (!is_object($trait)) {
             $trait = $this->source->getOutsideClass($trait_name);
             if (!$trait->source->isInternal()) {
                 $this->traits[$trait_name] = $trait;
             } else {
                 unset($this->traits[$trait_name]);
             }
         }
     }
     return $this->traits;
 }