Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 15 |
|
0.00% |
0 / 15 |
CRAP | |
0.00% |
0 / 1 |
| TaskLogEntityDecorator | |
0.00% |
0 / 15 |
|
0.00% |
0 / 15 |
240 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getParentId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getTaskName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getParameters | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getLabel | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getOwner | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getReport | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getCreatedAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getUpdatedAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getStatus | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| isMasterStatus | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getFileNameFromReport | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| jsonSerialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| toArray | |
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) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | namespace oat\taoTaskQueue\model\Entity\Decorator; |
| 23 | |
| 24 | use oat\tao\model\taskQueue\TaskLog\Entity\EntityInterface; |
| 25 | |
| 26 | /** |
| 27 | * @deprecated Use \oat\tao\model\taskQueue\TaskLog\Decorator\TaskLogEntityDecorator |
| 28 | * |
| 29 | * @author Gyula Szucs <gyula@taotesting.com> |
| 30 | */ |
| 31 | abstract class TaskLogEntityDecorator implements EntityInterface |
| 32 | { |
| 33 | /** |
| 34 | * @var EntityInterface |
| 35 | */ |
| 36 | private $entity; |
| 37 | |
| 38 | /** |
| 39 | * @param EntityInterface $entity |
| 40 | */ |
| 41 | public function __construct(EntityInterface $entity) |
| 42 | { |
| 43 | $this->entity = $entity; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * @inheritdoc |
| 48 | */ |
| 49 | public function getId() |
| 50 | { |
| 51 | return $this->entity->getId(); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * @inheritdoc |
| 56 | */ |
| 57 | public function getParentId() |
| 58 | { |
| 59 | return $this->entity->getId(); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * @inheritdoc |
| 64 | */ |
| 65 | public function getTaskName() |
| 66 | { |
| 67 | return $this->entity->getTaskName(); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * @inheritdoc |
| 72 | */ |
| 73 | public function getParameters() |
| 74 | { |
| 75 | return $this->entity->getParameters(); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * @inheritdoc |
| 80 | */ |
| 81 | public function getLabel() |
| 82 | { |
| 83 | return $this->entity->getLabel(); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * @inheritdoc |
| 88 | */ |
| 89 | public function getOwner() |
| 90 | { |
| 91 | return $this->entity->getOwner(); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * @inheritdoc |
| 96 | */ |
| 97 | public function getReport() |
| 98 | { |
| 99 | return $this->entity->getReport(); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * @inheritdoc |
| 104 | */ |
| 105 | public function getCreatedAt() |
| 106 | { |
| 107 | return $this->entity->getCreatedAt(); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * @inheritdoc |
| 112 | */ |
| 113 | public function getUpdatedAt() |
| 114 | { |
| 115 | return $this->entity->getUpdatedAt(); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * @inheritdoc |
| 120 | */ |
| 121 | public function getStatus() |
| 122 | { |
| 123 | return $this->entity->getStatus(); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * @inheritdoc |
| 128 | */ |
| 129 | public function isMasterStatus() |
| 130 | { |
| 131 | return $this->entity->isMasterStatus(); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | /** |
| 136 | * @inheritdoc |
| 137 | */ |
| 138 | public function getFileNameFromReport() |
| 139 | { |
| 140 | return $this->entity->getFileNameFromReport(); |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * @return array |
| 145 | */ |
| 146 | public function jsonSerialize() |
| 147 | { |
| 148 | return $this->entity->jsonSerialize(); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * @inheritdoc |
| 153 | */ |
| 154 | public function toArray() |
| 155 | { |
| 156 | return $this->entity->toArray(); |
| 157 | } |
| 158 | } |