public static function instances()
    {
        $all = [];
        foreach (static::getNames() as $name => $val) {
            $all[] = new static($name, $val);
        }
        return $all;
    }
public static function instances()
    {
        $all = [];
        foreach (static::getNames() as $name => $val) {
            $all[] = new static($name, $val);
        }
        return $all;
    }
public static function instances ( ) { $ all = [ ] ; foreach ( static :: getNames ( ) as $ name => $ val ) { $ all [ ] = new static ( $ name , $ val ) ; } return $ all ; }
Gets all enums

@return Enum[]
Gets all enums