Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
| core_kernel_persistence_starsql_StarRdfs | |
0.00% |
0 / 5 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getClassImplementation | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getResourceImplementation | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPropertyImplementation | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getModel | |
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 | use oat\generis\model\data\Ontology; |
| 24 | use oat\generis\model\data\RdfsInterface; |
| 25 | |
| 26 | class core_kernel_persistence_starsql_StarRdfs implements RdfsInterface |
| 27 | { |
| 28 | /** |
| 29 | * @var core_kernel_persistence_starsql_StarModel |
| 30 | */ |
| 31 | private $model; |
| 32 | |
| 33 | public function __construct(core_kernel_persistence_starsql_StarModel $model) |
| 34 | { |
| 35 | $this->model = $model; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * (non-PHPdoc) |
| 40 | * @see \oat\generis\model\data\RdfsInterface::getClassImplementation() |
| 41 | */ |
| 42 | public function getClassImplementation() |
| 43 | { |
| 44 | return new \core_kernel_persistence_starsql_Class($this->model); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * (non-PHPdoc) |
| 49 | * @see \oat\generis\model\data\RdfsInterface::getResourceImplementation() |
| 50 | */ |
| 51 | public function getResourceImplementation() |
| 52 | { |
| 53 | return new \core_kernel_persistence_starsql_Resource($this->model); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * (non-PHPdoc) |
| 58 | * @see \oat\generis\model\data\RdfsInterface::getPropertyImplementation() |
| 59 | */ |
| 60 | public function getPropertyImplementation() |
| 61 | { |
| 62 | return new \core_kernel_persistence_starsql_Property($this->model); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @return Ontology |
| 67 | */ |
| 68 | protected function getModel() |
| 69 | { |
| 70 | return $this->model; |
| 71 | } |
| 72 | } |