Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| VisibleElementAssoc | |
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getFileElement | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getTempFile | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\DataObjects; |
| 10 | |
| 11 | use OCA\Libresign\Db\FileElement; |
| 12 | |
| 13 | class VisibleElementAssoc { |
| 14 | public function __construct( |
| 15 | private FileElement $fileElement, |
| 16 | private string $tempFile = '', |
| 17 | ) { |
| 18 | } |
| 19 | |
| 20 | public function getFileElement(): FileElement { |
| 21 | return $this->fileElement; |
| 22 | } |
| 23 | |
| 24 | public function getTempFile(): string { |
| 25 | return $this->tempFile; |
| 26 | } |
| 27 | } |