- var_dump: documentation ( source)
<?php
trait Accessor
{
public static function int():int
{
var_dump(new ReflectionEnum(self));
}
}
enum Titular: int
{
use Accessor;
case minimus=1;
case maximus=2;
}
echo Titular::minimus::int();