src/DMS/Filter/Rules/Rule.php
private function parseSingleOption($options, \stdClass $result)
    {
        $option = $this->getDefaultOption();

        //No Default set, unsure what to do
        if (null === $option) {
            throw new RuleDefinitionException(
                sprintf('No default option is configured for rule %s', get_class($this))
            );
        }

        //Default option points to invalid one
        if (! property_exists($this, $option)) {
            $result->invalidOptions[] = $option;
            return;
        }

        //Define Option
        $this->$option = $options;
        unset($result->missingOptions[$option]);
    }
private function parseSingleOption($options, \stdClass $result)
    {
        $option = $this->getDefaultOption();

        //No Default set, unsure what to do
        if (null === $option) {
            throw new RuleDefinitionException(
                sprintf('No default option is configured for rule %s', get_class($this))
            );
        }

        //Default option points to invalid one
        if (! property_exists($this, $option)) {
            $result->invalidOptions[] = $option;
            return;
        }

        //Define Option
        $this->$option = $options;
        unset($result->missingOptions[$option]);
    }
private function parseSingleOption ( $ options , \ stdClass $ result ) { $ option = $ this -> getDefaultOption ( ) ; //No Default set, unsure what to do if ( null === $ option ) { throw new RuleDefinitionException ( sprintf ( 'No default option is configured for rule %s' , get_class ( $ this ) ) ) ; } //Default option points to invalid one if ( ! property_exists ( $ this , $ option ) ) { $ result -> invalidOptions [ ] = $ option ; return ; } //Define Option $ this -> $ option = $ options ; unset ( $ result -> missingOptions [ $ option ] ) ; }
Parses single option received

@param string $options
@param \stdClass $result
@throws \DMS\Filter\Exception\RuleDefinitionException
Parses single option received