src/ORM/Filters/SearchFilter.php
public function setModifiers(array $modifiers)
    {
        $modifiers = array_map('strtolower', $modifiers);

        // Validate modifiers are supported
        $allowed = $this->getSupportedModifiers();
        $unsupported = array_diff($modifiers, $allowed);
        if ($unsupported) {
            throw new InvalidArgumentException(
                static::class . ' does not accept ' . implode(', ', $unsupported) . ' as modifiers'
            );
        }

        $this->modifiers = $modifiers;
    }
public function setModifiers(array $modifiers)
    {
        $modifiers = array_map('strtolower', $modifiers);

        // Validate modifiers are supported
        $allowed = $this->getSupportedModifiers();
        $unsupported = array_diff($modifiers, $allowed);
        if ($unsupported) {
            throw new InvalidArgumentException(
                static::class . ' does not accept ' . implode(', ', $unsupported) . ' as modifiers'
            );
        }

        $this->modifiers = $modifiers;
    }
public function setModifiers ( array $ modifiers ) { $ modifiers = array_map ( 'strtolower' , $ modifiers ) ; // Validate modifiers are supported $ allowed = $ this -> getSupportedModifiers ( ) ; $ unsupported = array_diff ( $ modifiers , $ allowed ) ; if ( $ unsupported ) { throw new InvalidArgumentException ( static :: class . ' does not accept ' . implode ( ', ' , $ unsupported ) . ' as modifiers' ) ; } $ this -> modifiers = $ modifiers ; }
Set the current modifiers to apply to the filter

@param array $modifiers
Set the current modifiers to apply to the filter