public function search($value, bool $strict = false)
    {
        $ord = \array_search($value, $this->map, $strict);
        if ($ord !== false) {
            return ($this->enumeration)::byOrdinal($ord);
        }

        return null;
    }
public function search($value, bool $strict = false)
    {
        $ord = \array_search($value, $this->map, $strict);
        if ($ord !== false) {
            return ($this->enumeration)::byOrdinal($ord);
        }

        return null;
    }
public function search ( $ value , bool $ strict = false ) { $ ord = \ array_search ( $ value , $ this -> map , $ strict ) ; if ( $ ord !== false ) { return ( $ this -> enumeration ) :: byOrdinal ( $ ord ) ; } return null ; }
Search for the given data value.
@param mixed $value
@param bool $strict Use strict type comparison
@return Enum|null The enumerator object of the first matching data value or NULL
Search for the given data value .