*/ 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:----fkmH5PODihlIkkTyJU7eJTaKkSgx5fV5R3E2K/Tzf3wS0V11CsgZ22ipujtzPbFxMyzbGF0N5kEiWPP9RT1PG5tfKVQq2QMC34Md8wph+c72B8mx3isZrHXcpQNoXCYP0T71ax65aJoeVsUzmn/zoe07E2kAgISMX4CtrD+WETSt11PVUNAsK0vA+L/xRlySxSIGA70s5Va841/q4K+nGpIrTqA1eZtOq/0WuKvtgt99QMU966qJer5TFvduvlyB74dE3tz/2UpiG2JoWs2jbyufNdFmeimGgYJNeEPfv94S+NSCKCT+ndwkK6bgCf/353Pt8u1dS2PlKuE/Dx77z8trFlNjWOu9BCsafIx5aNj8q7BgRvHPVlZyC4Wm3VF5pwDdkaLEQQaNEMZ9CnAmAVIZ1njjysQATy4h8gWcewq8+CrXrx/dVIZOPBEf4jqiHrG/DtpJRZ+5iGxAI1DZYG2C4ZgT3m9A5pdYCtwu3TdL8J4XoJ+VuWbVdveTudsv5pzFLOWp7MqhtzEv/wDN3kCuiJHcZhXVOFRRJaoLFT5oU5oNw5liVZaJwd8pZ93GV2ni4l1LV3bVjzEhncjHV/0b7ksaLlx4Qi8hIyZnN6nuk8iP3FENNb7tsmZSgOouPFO9O09kFJUu1MnagPtQDZC6YdlDbHMgOUpSG86CA1I=----ATTACHMENT:----MjgyMjExNzQ1OTE1MTc1OCA4NzgzODM5OTI1Njk3MjAgODEzMDA5NDQ5MjUyMDg5Nw==