You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
366 B
PHTML
15 lines
366 B
PHTML
7 months ago
|
<?php
|
||
|
|
||
|
require __DIR__ . '/../vendor/autoload.php';
|
||
|
|
||
|
$class = new ReflectionClass($argv[1]);
|
||
|
|
||
|
echo "Predefined helper constants from `{$class->getName()}`\n\n";
|
||
|
|
||
|
echo "| Constant | {$argv[2]} | \n|----------|----------| \n";
|
||
|
|
||
|
foreach( $class->getConstants() as $constant => $value ) {
|
||
|
echo "| `{$class->getShortName()}::{$constant}` | {$value} | \n";
|
||
|
}
|
||
|
|
||
|
echo "\n";
|