public function Check($value)
    {
        if (!\in_array($value, $this->values))
            $this->error = self::NotInArray;
        
        return $this->error == '';
    }
public function Check($value)
    {
        if (!\in_array($value, $this->values))
            $this->error = self::NotInArray;
        
        return $this->error == '';
    }
public function Check ( $ value ) { if ( ! \ in_array ( $ value , $ this -> values ) ) $ this -> error = self :: NotInArray ; return $ this -> error == '' ; }
Checks if the value is in the array of allowed values
@param string $value
@return bool
Checks if the value is in the array of allowed values