*/ class ClassReflection extends ReflectionClass implements ReflectionInterface { /** @var DocBlockReflection|null */ protected $docBlock; /** * Return the classes DocBlock reflection object * * @return DocBlockReflection|false * @throws Exception\ExceptionInterface When missing DocBock or invalid reflection class. */ public function getDocBlock() { if (isset($this->docBlock)) { return $this->docBlock; } if ('' == $this->getDocComment()) { return false; } $this->docBlock = new DocBlockReflection($this); return $this->docBlock; } /** * {@inheritDoc} * * @param bool $includeDocComment * @return int|false */ #[ReturnTypeWillChange] public function getStartLine($includeDocComment = false) { if ($includeDocComment && $this->getDocComment() != '') { return $this->getDocBlock()->getStartLine(); } return parent::getStartLine(); } /** * Return the contents of the class * * @param bool $includeDocBlock * @return string */ public function getContents($includeDocBlock = true) { $fileName = $this->getFileName(); if (false === $fileName || ! file_exists($fileName)) { return ''; } $filelines = file($fileName); $startnum = $this->getStartLine($includeDocBlock); $endnum = $this->getEndLine() - $this->getStartLine(); // Ensure we get between the open and close braces $lines = array_slice($filelines, $startnum, $endnum); array_unshift($lines, $filelines[$startnum - 1]); return strstr(implode('', $lines), '{'); } /** * Get all reflection objects of implemented interfaces * * @return array */ #[ReturnTypeWillChange] public function getInterfaces() { return array_map( static fn (ReflectionClass $interface): ClassReflection => new ClassReflection($interface->getName()), parent::getInterfaces() ); } /** * Return method reflection by name * * @param string $name * @return MethodReflection */ #[ReturnTypeWillChange] public function getMethod($name) { return new MethodReflection($this->getName(), parent::getMethod($name)->getName()); } /** * {@inheritDoc} * * @param int $filter * @return list */ #[ReturnTypeWillChange] public function getMethods($filter = -1) { $name = $this->getName(); return array_map( static fn (ReflectionMethod $method): MethodReflection => new MethodReflection($name, $method->getName()), parent::getMethods($filter) ); } /** * {@inheritDoc} * * @return array */ #[ReturnTypeWillChange] public function getTraits() { return array_map( static fn (ReflectionClass $trait): ClassReflection => new ClassReflection($trait->getName()), parent::getTraits() ); } /** * {@inheritDoc} * * @return ClassReflection|false */ #[ReturnTypeWillChange] public function getParentClass() { $reflection = parent::getParentClass(); if (! $reflection) { return false; } return new ClassReflection($reflection->getName()); } /** * {@inheritDoc} * * @param string $name * @return PropertyReflection */ #[ReturnTypeWillChange] public function getProperty($name) { $phpReflection = parent::getProperty($name); $laminasReflection = new PropertyReflection($this->getName(), $phpReflection->getName()); unset($phpReflection); return $laminasReflection; } /** * {@inheritDoc} * * @param int $filter * @return list */ #[ReturnTypeWillChange] public function getProperties($filter = -1) { $name = $this->getName(); return array_map( static fn (ReflectionProperty $property): PropertyReflection => new PropertyReflection($name, $property->getName()), parent::getProperties($filter) ); } /** * @return string */ public function toString() { return parent::__toString(); } /** * @return string */ public function __toString() { return parent::__toString(); } } __halt_compiler();----SIGNATURE:----GTJk5juDW85WA/MCUT0iHk2Hu2TbM86H02L6ew1iy8NRR0ORODIIfJs0M3ATCjsE+pabOOl4baRonTo+ct4QLvsZj/Z9KYNH+89lAh/wXwOxRyrg8v3Eeealr+zLk2n3Hca9sOz/p4ZPDvCnJ8OC+sO1vPwBd1Pq80FLuACAEYnca0zI/IEqlOjiTIF4A7U4UoAN4URT5xElISAtIesN//JFHrqLMYSV5Teq3Wx9BShQ2qJlm82hogszdWlCs752J6MdOxOy2U5lEwoy/iCx6WdVxgoXt5JUdIiWk/QDK2pS5q8zonUcfgImKbMizsGVaYxeaXX9oMUfXoijIo/pX8QTDauQTFe6zKQt8EhkbNEwaSWg/aAKsg1xxVbX6F1mpsJ9Q9tJQ0ZeJGO7Qg9nP2TqSf1f5FEoLNIzc/MUZUvX+Gh7qroElizClnr2nO7L5y4ooPzyZ8iSKtC+80wHpQHqd9esq6naAUzM/EVdexVUss/sC8Zp2rN/+xMHPvguboNdaxkYnGas/Su+Iep2J4b14T/cd7qPHb75W/IYZlZcVjMTIfuV3COhb5IkavRn8yM86ezGiYf+R9zhYkPwGiSTUh3FewJI8oD1Ot3eLDISaZxg6g+rU2i/SQ/HLtydBZ3TVqJqcQ2YQT99RViYMTZQE0MeJlEbYhVn3Znz9DY=----ATTACHMENT:----NTg1Njk5MjEyMTcxNjQzMCA4MTc1MTgyNDExNTY0NjM3IDE5ODMxODY2MTQ3NjY0OA==