parentClass = ltrim($reflector->getParentClass(), '\\'); if (empty($this->parentClass)) { $this->parentClass = null; } $this->isAbstract = $reflector->isAbstract(); $this->isFinal = $reflector->isFinal(); foreach($reflector->getInterfaces() as $interface) { $this->interfaces[] = ltrim($interface, '\\'); } foreach($reflector->getTraits() as $trait) { $this->traits[] = ltrim($trait, '\\'); } foreach($reflector->getConstants() as $constantReflector) { if (strncmp($constantReflector->getShortName(), 'EVENT_', 6) == 0) { $event = new EventDoc($constantReflector); $event->definedBy = $this->name; $this->events[] = $event; } else { $constant = new ConstDoc($constantReflector); $constant->definedBy = $this->name; $this->constants[] = $constant; } } } }