for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PHPHtmlParser\DTO\Selector;
final class RuleDTO
{
/**
* @var string
*/
private $tag;
private $operator;
* @var string|array|null
private $key;
private $value;
* @var bool
private $noKey;
private $alterNext;
public function __construct(array $values)
$this->tag = $values['tag'];
$this->operator = $values['operator'];
$this->key = $values['key'];
$this->value = $values['value'];
$this->noKey = $values['noKey'];
$this->alterNext = $values['alterNext'];
}
* @return string
public function getTag(): string
return $this->tag;
public function getOperator(): string
return $this->operator;
* @return string|array|null
public function getKey()
return $this->key;
public function getValue()
return $this->value;
* @return bool
public function isNoKey(): bool
return $this->noKey;
public function isAlterNext(): bool
return $this->alterNext;