Home
last modified time | relevance | path

Searched refs:operation (Results 1 – 2 of 2) sorted by relevance

/web-bugs/src/Utils/
H A DCaptcha.php41 private $operation; variable in App\\Utils\\Captcha
82 public function setOperation(string $operation): void argument
84 $this->operation = in_array($operation, self::OPERATIONS) ? $operation : 'addition';
94 $symbol = array_search($this->operation, self::OPERATIONS);
107 return \call_user_func([Captcha::class, $this->operation], $this->first, $this->last);
120 if ($this->operation === 'subtraction') {
/web-bugs/tests/Unit/Utils/
H A DCaptchaTest.php21 …public function testGetQuestion(int $first, int $last, string $operation, string $question, int $e… argument
25 $this->captcha->setOperation($operation);

Completed in 4 milliseconds