src/ReflectionClosure.php
source
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Serializor; |
| 6 | |
| 7 | use ReflectionFunction; |
| 8 | use Serializor\Transformers\ClosureTransformer; |
| 9 | |
| 10 | class ReflectionClosure extends ReflectionFunction |
| 11 | { |
| 12 | |
| 13 | public function getCode(): string |
| 14 | { |
| 15 | return ClosureTransformer::getCode($this, $usedThis, $usedStatic); |
| 16 | } |
| 17 | } |
| 18 |