src/PHPEncoder.php
private function isValidOption($option)
    {
        if (array_key_exists($option, $this->options)) {
            return true;
        }

        foreach ($this->encoders as $encoder) {
            if (array_key_exists($option, $encoder->getDefaultOptions())) {
                return true;
            }
        }

        return false;
    }
private function isValidOption($option)
    {
        if (array_key_exists($option, $this->options)) {
            return true;
        }

        foreach ($this->encoders as $encoder) {
            if (array_key_exists($option, $encoder->getDefaultOptions())) {
                return true;
            }
        }

        return false;
    }
private function isValidOption ( $ option ) { if ( array_key_exists ( $ option , $ this -> options ) ) { return true ; } foreach ( $ this -> encoders as $ encoder ) { if ( array_key_exists ( $ option , $ encoder -> getDefaultOptions ( ) ) ) { return true ; } } return false ; }
Tells if the given string is a valid option name.
@param string $option Option name to validate
@return bool True if the name is a valid option name, false if not
Tells if the given string is a valid option name .