protected function setValue($value)
    {
        $enumKey = array_search((string) $value, static::$enumConstants[get_class($this)]);
        if ($enumKey === false) {
            throw new Exception\InvalidEnumerationValueException(
                sprintf('Invalid value %s for %s', $value, __CLASS__),
                1381615295
            );
        }
        $this->value = static::$enumConstants[get_class($this)][$enumKey];
    }
protected function setValue($value)
    {
        $enumKey = array_search((string) $value, static::$enumConstants[get_class($this)]);
        if ($enumKey === false) {
            throw new Exception\InvalidEnumerationValueException(
                sprintf('Invalid value %s for %s', $value, __CLASS__),
                1381615295
            );
        }
        $this->value = static::$enumConstants[get_class($this)][$enumKey];
    }
protected function setValue ( $ value ) { $ enumKey = array_search ( ( string ) $ value , static :: $ enumConstants [ get_class ( $ this ) ] ) ; if ( $ enumKey === false ) { throw new Exception \ InvalidEnumerationValueException ( sprintf ( 'Invalid value %s for %s' , $ value , __CLASS__ ) , 1381615295 ) ; } $ this -> value = static :: $ enumConstants [ get_class ( $ this ) ] [ $ enumKey ] ; }
Set the Enumeration value to the associated enumeration value by a loose comparison.
The value, that is used as the enumeration value, will be of the same type like defined in the enumeration

@param mixed $value
@throws Exception\InvalidEnumerationValueException
Set the Enumeration value to the associated enumeration value by a loose comparison . The value that is used as the enumeration value will be of the same type like defined in the enumeration