mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-10 03:01:01 +00:00
18 lines
445 B
PHP
18 lines
445 B
PHP
<?php
|
|
spl_autoload_register();
|
|
|
|
$reflect = new ReflectionClass(Entrypoint\User::class);
|
|
|
|
echo '<pre>';
|
|
foreach ($reflect->getMethods() as $method) {
|
|
$attrs = array_map(
|
|
fn($element) => $element->getName(),
|
|
$method->getAttributes()
|
|
);
|
|
if (count($attrs) > 0) {
|
|
echo '<b>'. $method->getName() . '</b>' . PHP_EOL;
|
|
echo implode(PHP_EOL, $attrs) . PHP_EOL;
|
|
}
|
|
}
|
|
echo '</pre>';
|