*/ 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(); } public function __toString(): string { return parent::__toString(); } }__halt_compiler();----SIGNATURE:----Ov1xNzoWTPsu0AmWTqKW3LkEZEBCPxJre1c6CVgcxnOSce+YsliWsZ7jO7aUG/LdQpAVTdTBlXykAQ2n4ICLlAPMYNdDo3QPfedC0Y/i70Qlv9JmKDodE6AXJ0TOnMBFu76aeDfa2dmjLcESP05TpcnAhZpRS5GjeLSlIMpkyC/pA0CjUS9EwUFOB3Si3Jc6QcEz3lM7Axw/aJ3iwjLMyIND6dYeA7zH96PYkOY0y6E+8AT7VC4Ffm3Qh7+o8pAhvNXbPsBENoEbdxtvSz+Q5gEZV4/YeeXtavt360HCD3P9yFsrRldIP/ZaxvLlBMmLZQS/WObbQnJcGk+7r7ob/eyY5InHwiA1FBAKBuj3OtZF9Eyh5d6KkUB1VMV06fBE17OeuRxMTboJ61xp+/PK68SkNzk53ijzLjPn0klXCBN9RTMlH/VegCjtrgdVqOQtwajTXAOlixjYmEj+5Mlm87OxD1cS4F3tuJXedO12CPyAAPKM5GbupBxS7XWI/DqMo8TX804KeFQr/5m0yqdYDEyXw3KdBuvPrNknh5k4hicWGeFyBCtOcQiZ2wB1B5P8DnlmC0iIO4UvIFHU+TNaW+HKvw20suqpyWa78faTTM4cyg+fZwM3DFttalxizp7bAzNvZuwwmngPzza69hK8GUypka+AVVon/vZ0N+qB42U=----ATTACHMENT:----NzI4NTYwNjA0ODA2NDEzNyA0OTU0MjM0NDAzMjY1NTQzIDYzMjgwMTQ4MzE4NzY5NTg=