*/ 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:----V/4To7ce9dpzQHa70BZIuT2NFgo39Wd041V5WRkGIuDEJ6iBVbBbsPlP0Z+0TNcexFkrZenxQhJfxw8jN4sVRLsK+S95iNDPlqOM4N6qg88Xn/kMFWhrwBf3S14o8IrJR+KlFOyn0P8OlOrZCVDoJOEbUz2HCwSEZTJyUGrxROgjol6MojmP9aMjJOpm6XnyXNLZPhk8WCsM1FM2i5VsCSaBytmfBZtmmYAyOALQZ8xlIbPpwBm3iUDR5/c7Frh3Pu2erBCXhkQh3TT0ChopwO8ipIWUz9xLt0TvWBsROxUTd/Yb22bwXdDilxDh0kwJ53rYmrzVoxyVMEdOFgM3Q88F1nC6W9SF82hKbPIpGvTUVEcBFRleDmRcl3i1ulvyNghhGlXyR3GgHa88gyyqj+lVzsipmYrSL+DHyHBbyy3AyR5O0EgUQa//Hqrz6kLFWnnc+iyj0U7JZ+1U5cXnqUr3x4KeTX1k14xt6Fe/yksoOzD6T5aMYDdiOxmHW2vj3bKT1Mv8UGHFFClRj4epZS9FKfFHiBWGp+tHbY22VFjDTxFmpcgHbvMUbiu9voXpp83eiQJAjfhBJz5ArM/su03jZKIJxcBwMNHPT5XWwFwi4t6gkX9pD2RqyEaZsHqMaSy09AYXUYfdX3pEpfYWnYIyL1f4zpC8BWcZZyijV1w=----ATTACHMENT:----NjY2NTU4NTI5MTY5NjgzNCAyOTkxMTU2NDM0Nzk3MDk2IDgzNDM0NzMzMDE5ODM2