Skip to content

Commit f18a8f8

Browse files
vincentchalamonsoyuka
authored andcommitted
Add parent & property attributes on ApiResource
1 parent ff701dd commit f18a8f8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Annotation/ApiResource.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
* @Attribute("paginationMaximumItemsPerPage", type="int"),
5959
* @Attribute("paginationPartial", type="bool"),
6060
* @Attribute("paginationViaCursor", type="array"),
61+
* @Attribute("parent", type="string"),
62+
* @Attribute("property", type="string"),
6163
* @Attribute("routePrefix", type="string"),
6264
* @Attribute("security", type="string"),
6365
* @Attribute("securityMessage", type="string"),
@@ -378,6 +380,20 @@ final class ApiResource
378380
*/
379381
private $paginationPartial;
380382

383+
/**
384+
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
385+
*
386+
* @var string
387+
*/
388+
private $parent;
389+
390+
/**
391+
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
392+
*
393+
* @var string
394+
*/
395+
private $property;
396+
381397
/**
382398
* @see https://api-platform.com/docs/core/operations/#prefixing-all-routes-of-all-operations
383399
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112

0 commit comments

Comments
 (0)