Example #1
0
 /**
  * Add the class's traits to the manifest
  */
 private function finaliseTraits()
 {
     $ref = new \ReflectionClass($this->class);
     foreach ($ref->getTraits() as $traitReflector) {
         $entry = new self($traitReflector->getName(), null, $this->manifest);
         $entry->finalise();
         $this->methods = array_merge($this->methods, $entry->methods);
         $this->properties = array_merge($this->properties, $entry->properties);
         $this->identifiers = array_merge($this->identifiers, $entry->identifiers);
         $this->constants = array_merge($this->constants, $entry->constants);
     }
 }