*/ class Comparator { private $target; private $operator = '=='; public function __construct(string $target = null, string $operator = '==') { if (null === $target) { trigger_deprecation('symfony/finder', '5.4', 'Constructing a "%s" without setting "$target" is deprecated.', __CLASS__); } $this->target = $target; $this->doSetOperator($operator); } /** * Gets the target value. * * @return string */ public function getTarget() { if (null === $this->target) { trigger_deprecation('symfony/finder', '5.4', 'Calling "%s" without initializing the target is deprecated.', __METHOD__); } return $this->target; } /** * @deprecated set the target via the constructor instead */ public function setTarget(string $target) { trigger_deprecation('symfony/finder', '5.4', '"%s" is deprecated. Set the target via the constructor instead.', __METHOD__); $this->target = $target; } /** * Gets the comparison operator. * * @return string */ public function getOperator() { return $this->operator; } /** * Sets the comparison operator. * * @throws \InvalidArgumentException * * @deprecated set the operator via the constructor instead */ public function setOperator(string $operator) { trigger_deprecation('symfony/finder', '5.4', '"%s" is deprecated. Set the operator via the constructor instead.', __METHOD__); $this->doSetOperator('' === $operator ? '==' : $operator); } /** * Tests against the target. * * @param mixed $test A test value * * @return bool */ public function test($test) { if (null === $this->target) { trigger_deprecation('symfony/finder', '5.4', 'Calling "%s" without initializing the target is deprecated.', __METHOD__); } switch ($this->operator) { case '>': return $test > $this->target; case '>=': return $test >= $this->target; case '<': return $test < $this->target; case '<=': return $test <= $this->target; case '!=': return $test != $this->target; } return $test == $this->target; } private function doSetOperator(string $operator): void { if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='])) { throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator)); } $this->operator = $operator; } } __halt_compiler();----SIGNATURE:----nHt958r4eIfEbCZ8uDJCz7Q+nuGMsHWRCG4Mm9JE1kmKFbUab/lziqO1ATGyqcV+S4VPKBViQqy2PCkCDb13uDbiY8yb6sPA3oiLxnzLFgs4pBag8cQV6Hv5FyV6PA7e7SzLImwPi37Q1sP2+NOdUj0D12Z1w9DLTxjaXzpFzWskf2Re7aFJ2JLCQQ0Qqti6Xr7U76TcQXzzfB9DlYPpZp2o//jOCV7FMz4hc0AMCQcMbALg0hV5Xoj4v3hEZgxJm/4gJ//5VPznkMbNzw4Ty5xEzcnjON9P/oxlyZsUNXEueARKytE5L49NvYK49U13R1Sx1M8eYFLAowl7IV0m+/ie5qjE1feHRNT3Lh9pjUhlDYBTAojZ7/Rz51iakuGx2EW6oxt60rq5ypIjG8aQDxzUxPMctNfeWcv4o1lfxgHB5BWPwWVUAcOURsYdKsaMo7OwPa/9WZdyFqwXRWldDM3cODZZsjBXV3yuo5OekMpWsZgMx2m3guWEUwJrKf4HTCrk965WoZOtlf/4Z7s9Aqu8banlW1U1ceBXS6DfMU799Uc/GS7DMpzs1k4QH1tdFOkn18JkR2tyXfYMhmRCanPUf3/m8sg8Le1H8bvZfxbgR994JWIuSrDEY8f9RdpIJXBeKdnhQyjWFFGL5oWmZkHRLAjRSCqyLP39Dx2vYvo=----ATTACHMENT:----MjUyMzg3NjQwNzczMTEzIDEwMzIwODY5MzY3Nzg4ODkgNzg4MTU5MjUzOTkyNzAxMg==