Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| ContainerStatic | |
0.00% |
0 / 11 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| getValidElementTypes | |
0.00% |
0 / 10 |
|
0.00% |
0 / 1 |
2 | |||
| getBody | |
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) 2013-2022 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); |
| 19 | */ |
| 20 | |
| 21 | namespace oat\taoQtiItem\model\qti\container; |
| 22 | |
| 23 | use oat\taoQtiItem\model\qti\feedback\Feedback; |
| 24 | use oat\taoQtiItem\model\qti\Figure; |
| 25 | use oat\taoQtiItem\model\qti\Img; |
| 26 | use oat\taoQtiItem\model\qti\Math; |
| 27 | use oat\taoQtiItem\model\qti\QtiObject; |
| 28 | use oat\taoQtiItem\model\qti\Table; |
| 29 | use oat\taoQtiItem\model\qti\Tooltip; |
| 30 | use oat\taoQtiItem\model\qti\XInclude; |
| 31 | |
| 32 | /** |
| 33 | * The QTI_Container object represents the generic element container |
| 34 | * |
| 35 | * @access public |
| 36 | * @author Sam, <sam@taotesting.com> |
| 37 | * @package taoQTI |
| 38 | */ |
| 39 | class ContainerStatic extends Container |
| 40 | { |
| 41 | /** |
| 42 | * @inheritDoc |
| 43 | */ |
| 44 | public function getValidElementTypes(): array |
| 45 | { |
| 46 | return [ |
| 47 | Feedback::class, |
| 48 | Figure::class, |
| 49 | Img::class, |
| 50 | Math::class, |
| 51 | QtiObject::class, |
| 52 | Table::class, |
| 53 | Tooltip::class, |
| 54 | XInclude::class, |
| 55 | ]; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Fix erroneously self-closing elements |
| 60 | * |
| 61 | * @return string |
| 62 | */ |
| 63 | public function getBody() |
| 64 | { |
| 65 | return $this->fixNonvoidTags(parent::getBody()); |
| 66 | } |
| 67 | } |