Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| ItemImported | |
0.00% |
0 / 5 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getItem | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getRdfItem | |
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\taoQtiItem\model\event; |
| 23 | |
| 24 | use oat\oatbox\event\Event; |
| 25 | |
| 26 | class ItemImported implements Event |
| 27 | { |
| 28 | /** |
| 29 | * The Qti Item model object |
| 30 | * @var \oat\taoQtiItem\model\qti\Item |
| 31 | */ |
| 32 | private $item; |
| 33 | |
| 34 | /** |
| 35 | * The Rdf Qti Item |
| 36 | * @var type |
| 37 | */ |
| 38 | private $rdfItem; |
| 39 | |
| 40 | |
| 41 | /** |
| 42 | * Create an instance of ItemImported event |
| 43 | * |
| 44 | * @param \core_kernel_classes_Resource $rdfItem |
| 45 | * @param \oat\taoQtiItem\model\qti\Item $item |
| 46 | */ |
| 47 | public function __construct(\core_kernel_classes_Resource $rdfItem, \oat\taoQtiItem\model\qti\Item $item) |
| 48 | { |
| 49 | $this->item = $item; |
| 50 | $this->rdfItem = $rdfItem; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * @see \oat\oatbox\event\Event::getName() |
| 55 | */ |
| 56 | public function getName() |
| 57 | { |
| 58 | return __CLASS__; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * @return \oat\taoQtiItem\model\qti\Item |
| 63 | */ |
| 64 | public function getItem() |
| 65 | { |
| 66 | return $this->item; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * @return \core_kernel_classes_Resource |
| 71 | */ |
| 72 | public function getRdfItem() |
| 73 | { |
| 74 | return $this->rdfItem; |
| 75 | } |
| 76 | } |