@@ -25,7 +25,6 @@ |
||
25 | 25 | use OCA\Calendar\IBackendCollection; |
26 | 26 | use OCP\AppFramework\Db\DoesNotExistException; |
27 | 27 | use OCP\AppFramework\Db\MultipleObjectsReturnedException; |
28 | -use OCP\AppFramework\Http; |
|
29 | 28 | use OCA\Calendar\ISubscription; |
30 | 29 | use OCA\Calendar\Backend as BackendUtils; |
31 | 30 |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param ICollection $collection collection of entities to be added |
99 | 99 | * @param integer $nth insert at index, if not set, collection will be appended |
100 | 100 | * if negative, it will be inserted at the position that many elements from the end |
101 | - * @return integer |
|
101 | + * @return Collection |
|
102 | 102 | */ |
103 | 103 | public function addCollection(ICollection $collection, $nth=null) { |
104 | 104 | return $this->addObjects($collection->getObjects(), $nth); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param array $array |
112 | 112 | * @param integer $nth insert at index, if not set, objects will be appended |
113 | 113 | * if negative, it will be inserted at the position that many elements from the end |
114 | - * @return integer |
|
114 | + * @return Collection |
|
115 | 115 | */ |
116 | 116 | public function addObjects(array $array, $nth=null) { |
117 | 117 | if ($nth === null) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * set objects |
140 | 140 | * |
141 | - * @param array $objects |
|
141 | + * @param TestEntity[] $objects |
|
142 | 142 | * @return $this |
143 | 143 | */ |
144 | 144 | public function setObjects(array $objects) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * |
153 | 153 | * @param integer $limit |
154 | 154 | * @param integer $offset |
155 | - * @return array of Entities |
|
155 | + * @return ICollection of Entities |
|
156 | 156 | */ |
157 | 157 | public function subset($limit=null, $offset=null) { |
158 | 158 | /** @var ICollection $instance */ |
@@ -187,8 +187,8 @@ discard block |
||
187 | 187 | * get a collection of entities that meet criteria |
188 | 188 | * |
189 | 189 | * @param string $key property that's supposed to be searched |
190 | - * @param mixed $value expected value, can be a regular expression when 3rd param is set to true |
|
191 | - * @return mixed (boolean|ICollection) |
|
190 | + * @param boolean|string $value expected value, can be a regular expression when 3rd param is set to true |
|
191 | + * @return Collection (boolean|ICollection) |
|
192 | 192 | */ |
193 | 193 | public function search($key, $value) { |
194 | 194 | $collection = new static(); |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | |
278 | 278 | |
279 | 279 | /** |
280 | - * @param mixed $offset |
|
280 | + * @param integer $offset |
|
281 | 281 | * @param mixed $value |
282 | 282 | */ |
283 | 283 | public function offsetSet($offset, $value){ |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | |
294 | 294 | |
295 | 295 | /** |
296 | - * @param mixed $offset |
|
296 | + * @param integer $offset |
|
297 | 297 | */ |
298 | 298 | public function offsetUnset($offset) { |
299 | 299 | unset($this->objects[$offset]); |
@@ -27,6 +27,10 @@ |
||
27 | 27 | |
28 | 28 | class TestEntity extends Entity { |
29 | 29 | private $name; |
30 | + |
|
31 | + /** |
|
32 | + * @param string $name |
|
33 | + */ |
|
30 | 34 | public function __construct($name) |
31 | 35 | { |
32 | 36 | $this->name = $name; |