src/Enum.php
public static function inEnum($value)
    {
        $allItems = array_flip(self::toArray());

        return isset($allItems[$value]) ? true : false;
    }
public static function inEnum($value)
    {
        $allItems = array_flip(self::toArray());

        return isset($allItems[$value]) ? true : false;
    }
public static function inEnum ( $ value ) { $ allItems = array_flip ( self :: toArray ( ) ) ; return isset ( $ allItems [ $ value ] ) ? true : false ; }
Check if a value is in enum

@return boolean True if the value is in enum false if not
Check if a value is in enum