name = ltrim($reflector->getName(), '\\'); $this->startLine = $reflector->getNode()->getAttribute('startLine'); $this->endLine = $reflector->getNode()->getAttribute('endLine'); foreach($reflector->getTraits() as $trait) { $this->traits[] = ltrim($trait, '\\'); } // TODO methods // TODO properties // TODO docblock if ($context !== null) { $context->addTrait($this); } parent::__construct($config); } }