MyCLabs\Enum\Enum::values PHP Method

values() public static method

Returns instances of the Enum class of all Enum constants
public static values ( ) : static[]
return static[] Constant name in key, Enum instance in value
    public static function values()
    {
        $values = array();
        foreach (static::toArray() as $key => $value) {
            $values[$key] = new static($value);
        }
        return $values;
    }