Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
22.22% |
2 / 9 |
|
22.22% |
2 / 9 |
CRAP | |
0.00% |
0 / 1 |
| TaskLogCollectionDecorator | |
22.22% |
2 / 9 |
|
22.22% |
2 / 9 |
47.11 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getIterator | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| count | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| toArray | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| isEmpty | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| first | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| last | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getIds | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| jsonSerialize | |
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\TaskLog\Decorator; |
| 23 | |
| 24 | use oat\tao\model\taskQueue\TaskLog\CollectionInterface; |
| 25 | |
| 26 | /** |
| 27 | * Interface TaskLogCollectionDecorator |
| 28 | * |
| 29 | * @deprecated Use \oat\tao\model\taskQueue\TaskLog\Decorator\TaskLogCollectionDecorator |
| 30 | * |
| 31 | * @author Gyula Szucs <gyula@taotesting.com> |
| 32 | */ |
| 33 | abstract class TaskLogCollectionDecorator implements CollectionInterface |
| 34 | { |
| 35 | /** |
| 36 | * @var CollectionInterface |
| 37 | */ |
| 38 | private $collection; |
| 39 | |
| 40 | /** |
| 41 | * @param CollectionInterface $collection |
| 42 | */ |
| 43 | public function __construct(CollectionInterface $collection) |
| 44 | { |
| 45 | $this->collection = $collection; |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * @inheritdoc |
| 50 | */ |
| 51 | public function getIterator() |
| 52 | { |
| 53 | return $this->collection->getIterator(); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * @inheritdoc |
| 58 | */ |
| 59 | public function count() |
| 60 | { |
| 61 | return $this->collection->count(); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * @inheritdoc |
| 66 | */ |
| 67 | public function toArray() |
| 68 | { |
| 69 | return $this->collection->toArray(); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * @inheritdoc |
| 74 | */ |
| 75 | public function isEmpty() |
| 76 | { |
| 77 | return $this->collection->isEmpty(); |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * @inheritdoc |
| 82 | */ |
| 83 | public function first() |
| 84 | { |
| 85 | return $this->collection->first(); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * @inheritdoc |
| 90 | */ |
| 91 | public function last() |
| 92 | { |
| 93 | return $this->collection->last(); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * @inheritdoc |
| 98 | */ |
| 99 | public function getIds() |
| 100 | { |
| 101 | return $this->collection->getIds(); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * @inheritdoc |
| 106 | */ |
| 107 | public function jsonSerialize() |
| 108 | { |
| 109 | return $this->collection->jsonSerialize(); |
| 110 | } |
| 111 | } |