@@ -18,21 +18,21 @@ interface ContentServiceInterface
1818 * @param bool|null $isWebPage Whether to filter by web page status.
1919 * @param bool|null $isPublished Whether to filter by published status.
2020 * @param array $withRelations The relations to load with the content.
21- * @param array<string,string>|null $sorting The sorting options for the query.
22- * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
21+ * @param array<string,string>|null $sorting The sorting options for the query.
22+ * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
2323 * @return ContentCollection<TResult>
2424 */
2525 public function findByIds ($ ids , $ isWebPage = null , $ isPublished = null , $ withRelations = [], $ sorting = [], $ limit = 10 );
26-
26+
2727 /**
2828 * Find content item(s) by their route pattern and language ID.
2929 *
3030 * @param string $uri The URI of the content item to find.
3131 * @param bool $isDefaultRoutePattern Whether to filter by default route pattern.
3232 * @param bool|null $isWebPage Whether to filter by web page status.
3333 * @param array $withRelations The relations to load with the content.
34- * @param array<string,string>|null $sorting The sorting options for the query.
35- * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
34+ * @param array<string,string>|null $sorting The sorting options for the query.
35+ * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
3636 * @return Collection<array{content:TResult,language_id:int}>
3737 */
3838 public function findByRoutePatternWithLangId ($ uri , $ isDefaultRoutePattern , $ isWebPage = null , $ withRelations = [], $ sorting = [], $ limit = 10 );
@@ -44,8 +44,8 @@ public function findByRoutePatternWithLangId($uri, $isDefaultRoutePattern, $isWe
4444 * @param bool|null $isWebPage Whether to filter by web page status.
4545 * @param bool|null $isPublished Whether to filter by published status.
4646 * @param array $withRelations The relations to load with the content.
47- * @param array<string,string>|null $sorting The sorting options for the query.
48- * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
47+ * @param array<string,string>|null $sorting The sorting options for the query.
48+ * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
4949 * @return Collection<string,TResult> Keyed by the path.
5050 */
5151 public function findByRealPath ($ path , $ isWebPage = null , $ isPublished = null , $ withRelations = [], $ sorting = [], $ limit = 10 );
@@ -57,8 +57,8 @@ public function findByRealPath($path, $isWebPage = null, $isPublished = null, $w
5757 * @param bool|null $isWebPage Whether to filter by web page status.
5858 * @param bool|null $isPublished Whether to filter by published status.
5959 * @param array $withRelations The relations to load with the content.
60- * @param array<string,string>|null $sorting The sorting options for the query.
61- * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
60+ * @param array<string,string>|null $sorting The sorting options for the query.
61+ * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
6262 * @return ContentCollection<TResult>
6363 */
6464 public function getUnderRealPath ($ path , $ isWebPage = null , $ isPublished = null , $ withRelations = [], $ sorting = [], $ limit = 10 );
@@ -73,39 +73,38 @@ public function getUnderRealPath($path, $isWebPage = null, $isPublished = null,
7373 * @param bool|null $isWebPage Whether to filter by web page status.
7474 * @param bool|null $isPublished Whether to filter by published status.
7575 * @param array $withRelations The relations to load with the content.
76- * @param array<string,string>|null $sorting The sorting options for the query.
76+ * @param array<string,string>|null $sorting The sorting options for the query.
7777 * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<TResult>
7878 */
7979 public function getPaginatedByIds ($ ids , $ page = 1 , $ perPage = 10 , $ pageName = 'page ' , $ isWebPage = null , $ isPublished = null , $ withRelations = [], $ sorting = []);
8080
8181 /**
8282 * Get content items by their real path with pagination.
8383 *
84- * @param string $path The real path to filter content items by
85- * @param int $page The current page number
86- * @param int|null $perPage The number of items per page.
87- * @param string $pageName Name of the page query parameter
88- * @param bool|null $isWebPage Filter by web page status (true/false/null for all)
89- * @param bool|null $isPublished Filter by published status (true/false/null for all)
90- * @param array $withRelations Relationships to eager load with the query
91- * @param array $sorting Sorting options for the results
92- *
84+ * @param string $path The real path to filter content items by
85+ * @param int $page The current page number
86+ * @param int|null $perPage The number of items per page.
87+ * @param string $pageName Name of the page query parameter
88+ * @param bool|null $isWebPage Filter by web page status (true/false/null for all)
89+ * @param bool|null $isPublished Filter by published status (true/false/null for all)
90+ * @param array $withRelations Relationships to eager load with the query
91+ * @param array $sorting Sorting options for the results
9392 * @return \Illuminate\Pagination\LengthAwarePaginator<TResult>
9493 */
9594 public function getPaginatedByRealPath ($ path , $ page = 1 , $ perPage = 10 , $ pageName = 'page ' , $ isWebPage = null , $ isPublished = null , $ withRelations = [], $ sorting = []);
96-
95+
9796 /**
9897 * Get content items under the given real path with pagination.
9998 *
10099 * @param string|string[] $path The real path under which to find content items.
101- * @param int $page The current page number
102- * @param int|null $perPage The number of items per page.
103- * @param string $pageName Name of the page query parameter
100+ * @param int $page The current page number
101+ * @param int|null $perPage The number of items per page.
102+ * @param string $pageName Name of the page query parameter
104103 * @param bool|null $isWebPage Whether to filter by web page status.
105104 * @param bool|null $isPublished Whether to filter by published status.
106105 * @param array $withRelations The relations to load with the content.
107- * @param array<string,string>|null $sorting The sorting options for the query.
108- * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
106+ * @param array<string,string>|null $sorting The sorting options for the query.
107+ * @param int|null $limit The maximum number of content items to retrieve, or null for unlimited.
109108 * @return ContentCollection<TResult>
110109 */
111110 public function getPaginatedUnderRealPath ($ path , $ page = 1 , $ perPage = 10 , $ pageName = 'page ' , $ isWebPage = null , $ isPublished = null , $ withRelations = [], $ sorting = []);
0 commit comments