Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
50.00% |
2 / 4 |
|
33.33% |
1 / 3 |
CRAP | |
0.00% |
0 / 1 |
ItemOfflineEvent | |
50.00% |
2 / 4 |
|
33.33% |
1 / 3 |
4.12 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getCurrentItemId | |
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) 2015 (original work) Open Assessment Technologies SA; |
19 | * |
20 | */ |
21 | |
22 | namespace oat\taoQtiTest\models\event; |
23 | |
24 | use qtism\runtime\tests\AssessmentTestSession; |
25 | |
26 | /** |
27 | * Event exit from test (by pressing exit button by test taker). |
28 | * Note that exit is not the same as finishing. |
29 | * |
30 | * @author Antoine Robin <antoine@taotesting.com> |
31 | */ |
32 | class ItemOfflineEvent extends AbstractTestEvent |
33 | { |
34 | private $itemId; |
35 | |
36 | public function __construct(AssessmentTestSession $session, $itemId) |
37 | { |
38 | parent::__construct($session); |
39 | |
40 | $this->itemId = $itemId; |
41 | } |
42 | |
43 | /** |
44 | * @return string |
45 | */ |
46 | public function getName() |
47 | { |
48 | return __CLASS__; |
49 | } |
50 | |
51 | public function getCurrentItemId() |
52 | { |
53 | return $this->itemId; |
54 | } |
55 | } |