@@ -28,13 +28,13 @@ |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Returns the given object as an associative array |
| 31 | - * @param AnnotatedInterface|object $model |
|
| 31 | + * @param AnnotatedInterface $model |
|
| 32 | 32 | * @param string[] $fields Fields to transform |
| 33 | 33 | * |
| 34 | 34 | * @param int $inline The level where you switch to inline YAML |
| 35 | 35 | * @param int $indent The amount of spaces to use for indentation of nested nodes. |
| 36 | 36 | * @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise |
| 37 | - * @return array an associative array of the contents of this object |
|
| 37 | + * @return string an associative array of the contents of this object |
|
| 38 | 38 | */ |
| 39 | 39 | public static function fromModel(AnnotatedInterface $model, $fields = [], $inline = 2, $indent = 4, $exceptionOnInvalidType = false) |
| 40 | 40 | { |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | /** |
| 149 | 149 | * Returns the pagination object. |
| 150 | 150 | * @param string $className the pagination object class name, use this param to override default pagination class. |
| 151 | - * @return PaginationInterface|Pagination|false the pagination object. If this is false, it means the pagination is disabled. |
|
| 151 | + * @return LimitableInterface the pagination object. If this is false, it means the pagination is disabled. |
|
| 152 | 152 | */ |
| 153 | 153 | abstract public function getPagination($className = Pagination::class); |
| 154 | 154 | |