src/View/Cell/ResultCell.php
private function validateOptions(array $options): void
    {
        foreach ($this->requiredOptions as $name) {
            if (!array_key_exists($name, $options)) {
                throw new InvalidArgumentException(sprintf('Required parameter "%s" is missing.', $name));
            }

            $this->{$name} = $options[$name];
        }
    }
private function validateOptions(array $options): void
    {
        foreach ($this->requiredOptions as $name) {
            if (!array_key_exists($name, $options)) {
                throw new InvalidArgumentException(sprintf('Required parameter "%s" is missing.', $name));
            }

            $this->{$name} = $options[$name];
        }
    }
private function validateOptions ( array $ options ) : void { foreach ( $ this -> requiredOptions as $ name ) { if ( ! array_key_exists ( $ name , $ options ) ) { throw new InvalidArgumentException ( sprintf ( 'Required parameter "%s" is missing.' , $ name ) ) ; } $ this -> { $ name } = $ options [ $ name ] ; } }
Validates required options and sets them as class properties.

@param mixed[] $options Search options
@return void
Validates required options and sets them as class properties .