Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
50.00% |
3 / 6 |
|
25.00% |
1 / 4 |
CRAP | |
0.00% |
0 / 1 |
| PatchCommand | |
50.00% |
3 / 6 |
|
25.00% |
1 / 4 |
6.00 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| getFileReference | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getUserId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; under version 2 |
| 7 | * of the License (non-upgradable). |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | * |
| 18 | * Copyright (c) 2020 (original work) Open Assessment Technologies SA; |
| 19 | */ |
| 20 | |
| 21 | declare(strict_types=1); |
| 22 | |
| 23 | namespace oat\taoMediaManager\model\sharedStimulus; |
| 24 | |
| 25 | class PatchCommand |
| 26 | { |
| 27 | /** @var string */ |
| 28 | private $id; |
| 29 | /** @var string */ |
| 30 | private $fileReference; |
| 31 | /** @var string */ |
| 32 | private $userId; |
| 33 | |
| 34 | public function __construct(string $id, string $fileReference, string $userId) |
| 35 | { |
| 36 | $this->id = $id; |
| 37 | $this->fileReference = $fileReference; |
| 38 | $this->userId = $userId; |
| 39 | } |
| 40 | |
| 41 | public function getFileReference(): string |
| 42 | { |
| 43 | return $this->fileReference; |
| 44 | } |
| 45 | |
| 46 | public function getId(): string |
| 47 | { |
| 48 | return $this->id; |
| 49 | } |
| 50 | |
| 51 | public function getUserId(): string |
| 52 | { |
| 53 | return $this->userId; |
| 54 | } |
| 55 | } |