An open API service indexing awesome lists of open source software.

https://github.com/sagittaracc/reflection


https://github.com/sagittaracc/reflection

php php-extension php-extensions php-reflection reflection-library

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

### Пример

```php
namespace sagittaracc\classes;

class Test
{
public function method()
{
if (true) {
return 'this method';
}

return 'never goes here';
}
}
```

```php
$reflection = new ReflectionClass(Test::class);
$method = $reflection->getMethod('method');
echo $method->body; // if (true) { return 'this method'; } return 'never goes here';
```