Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
33.33% |
1 / 3 |
|
33.33% |
1 / 3 |
CRAP | |
0.00% |
0 / 1 |
| AbstractTestEvent | |
33.33% |
1 / 3 |
|
33.33% |
1 / 3 |
5.67 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSession | |
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 | use oat\oatbox\event\Event; |
| 26 | |
| 27 | /** |
| 28 | * @author Aleh Hutnikau <hutnikau@1pt.com> |
| 29 | */ |
| 30 | abstract class AbstractTestEvent implements Event |
| 31 | { |
| 32 | protected $session; |
| 33 | |
| 34 | /** |
| 35 | * QtiMoveEvent constructor. |
| 36 | * @param AssessmentTestSession $session |
| 37 | */ |
| 38 | public function __construct(AssessmentTestSession $session) |
| 39 | { |
| 40 | $this->session = $session; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @return string |
| 45 | */ |
| 46 | public function getName() |
| 47 | { |
| 48 | return __CLASS__; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /** |
| 53 | * @return AssessmentTestSession |
| 54 | */ |
| 55 | public function getSession() |
| 56 | { |
| 57 | return $this->session; |
| 58 | } |
| 59 | } |