Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
| DeliveryExecutionFinish | |
0.00% |
0 / 7 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getDeliveryExecution | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getVariables | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getIsManualScored | |
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) 2023 (original work) Open Assessment Technologies SA; |
| 19 | */ |
| 20 | |
| 21 | declare(strict_types=1); |
| 22 | |
| 23 | namespace oat\taoQtiTest\models\event; |
| 24 | |
| 25 | use oat\oatbox\event\Event; |
| 26 | use oat\taoDelivery\model\execution\DeliveryExecution; |
| 27 | |
| 28 | class DeliveryExecutionFinish implements Event |
| 29 | { |
| 30 | private DeliveryExecution $deliveryExecution; |
| 31 | private array $variables; |
| 32 | private bool $isManualScored; |
| 33 | |
| 34 | public function __construct( |
| 35 | DeliveryExecution $deliveryExecution, |
| 36 | array $variables, |
| 37 | bool $isManualScored |
| 38 | ) { |
| 39 | $this->deliveryExecution = $deliveryExecution; |
| 40 | $this->variables = $variables; |
| 41 | $this->isManualScored = $isManualScored; |
| 42 | } |
| 43 | |
| 44 | public function getName(): string |
| 45 | { |
| 46 | return self::class; |
| 47 | } |
| 48 | |
| 49 | public function getDeliveryExecution(): DeliveryExecution |
| 50 | { |
| 51 | return $this->deliveryExecution; |
| 52 | } |
| 53 | |
| 54 | public function getVariables(): array |
| 55 | { |
| 56 | return $this->variables; |
| 57 | } |
| 58 | |
| 59 | public function getIsManualScored(): bool |
| 60 | { |
| 61 | return $this->isManualScored; |
| 62 | } |
| 63 | } |