Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
6 / 6 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
| SignerSearchContext | |
100.00% |
6 / 6 |
|
100.00% |
4 / 4 |
5 | |
100.00% |
1 / 1 |
| set | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 | |||
| getMethod | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getSearch | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getRawSearch | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Service\Identify; |
| 10 | |
| 11 | class SignerSearchContext { |
| 12 | private string $method = ''; |
| 13 | private string $search = ''; |
| 14 | private string $rawSearch = ''; |
| 15 | |
| 16 | public function set(string $method, string $search, string $rawSearch = ''): void { |
| 17 | $this->method = $method; |
| 18 | $this->search = $search; |
| 19 | $this->rawSearch = $rawSearch !== '' ? $rawSearch : $search; |
| 20 | } |
| 21 | |
| 22 | public function getMethod(): string { |
| 23 | return $this->method; |
| 24 | } |
| 25 | |
| 26 | public function getSearch(): string { |
| 27 | return $this->search; |
| 28 | } |
| 29 | |
| 30 | public function getRawSearch(): string { |
| 31 | return $this->rawSearch; |
| 32 | } |
| 33 | } |