public function ifIsOneOf(array $allowedValues)
    {
        if ($this->value->isOneOf($allowedValues)) {
            return $this->value->value();
        }

        $this->paramErrors->append(
                $this->paramName,
                'FIELD_NO_SELECT',
                ['ALLOWED' => join('|', $allowedValues)]
        );
        return null;
    }