for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helldar\LaravelLangPublisher\Support;
use ReflectionClass;
final class Reflection
{
/**
* @throws \ReflectionException
*/
public function getConstants(string $class): array
return $this->resolve($class)->getConstants();
}
protected function resolve(string $class): ReflectionClass
return new ReflectionClass($class);