for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace Console\Modifier;
use ReflectionClass;
use ReflectionException;
abstract class Modifier implements ModifierInterface
{
/**
* @param string $class
*
* @return array
*/
public static function getAll(string $class = __CLASS__): array
try {
$class = new ReflectionClass($class);
return $class->getConstants();
} catch (ReflectionException $e) {
return [];
}