| 1 | <?php | ||
| 8 | final class ExactCondition implements ConditionInterface | ||
| 9 | { | ||
| 10 | /** @var mixed */ | ||
| 11 | private $value; | ||
| 12 | /** @var bool */ | ||
| 13 | private $strict = true; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * ExactCondition constructor. | ||
| 17 | * | ||
| 18 | * @param mixed $value | ||
| 19 | * @param bool $strict | ||
| 20 | */ | ||
| 21 | 1 | public function __construct($value, $strict = true) | |
| 22 |     { | ||
| 23 | 1 | $this->value = $value; | |
| 24 | 1 | $this->strict = $strict; | |
| 25 | 1 | } | |
| 26 | |||
| 27 |     /** {@inheritdoc} */ | ||
| 28 | public function attach(TargetDefinitionInterface $target, $code) | ||
| 32 | |||
| 33 |     /** {@inheritdoc} */ | ||
| 34 | 5 | public function match($object) | |
| 39 | |||
| 40 | /** | ||
| 41 | * @param $object | ||
| 42 | * | ||
| 43 | * @return bool | ||
| 44 | */ | ||
| 45 | 5 | private function doMatch($object) | |
| 49 | } | ||
| 50 |