LdapTools\Query\Operator\Wildcard::__construct PHP Метод

__construct() публичный Метод

Construct a filter that contains a wildcard.
public __construct ( string $attribute, string $type, null | string $value = null )
$attribute string
$type string
$value null | string
    public function __construct($attribute, $type, $value = null)
    {
        if (!defined('self::' . strtoupper($type))) {
            throw new LdapQueryException(sprintf('Invalid wildcard operator type "%s".', $type));
        } elseif ($type == self::PRESENT) {
            $this->setUseConverter(false);
        }
        $this->setAttribute($attribute);
        $this->value = $value;
        $this->validOperators = [self::EQ];
        $this->operatorSymbol = self::EQ;
        $this->wildcardType = $type;
    }