@@ -32,16 +32,19 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @throws ModelManagerException |
| 35 | + * @return void |
|
| 35 | 36 | */ |
| 36 | 37 | public function create(object $object): void; |
| 37 | 38 | |
| 38 | 39 | /** |
| 39 | 40 | * @throws ModelManagerException |
| 41 | + * @return void |
|
| 40 | 42 | */ |
| 41 | 43 | public function update(object $object): void; |
| 42 | 44 | |
| 43 | 45 | /** |
| 44 | 46 | * @throws ModelManagerException |
| 47 | + * @return void |
|
| 45 | 48 | */ |
| 46 | 49 | public function delete(object $object): void; |
| 47 | 50 | |
@@ -62,12 +65,13 @@ discard block |
||
| 62 | 65 | /** |
| 63 | 66 | * @param mixed $id |
| 64 | 67 | * |
| 65 | - * @return object|null the object with id or null if not found |
|
| 68 | + * @return \Sonata\AdminBundle\Tests\App\Model\Foo|null the object with id or null if not found |
|
| 66 | 69 | */ |
| 67 | 70 | public function find(string $class, $id): ?object; |
| 68 | 71 | |
| 69 | 72 | /** |
| 70 | 73 | * @throws ModelManagerException |
| 74 | + * @return void |
|
| 71 | 75 | */ |
| 72 | 76 | public function batchDelete(string $class, ProxyQueryInterface $queryProxy): void; |
| 73 | 77 | |
@@ -88,6 +92,7 @@ discard block |
||
| 88 | 92 | * Get a list of the field names models of the specified fully qualified |
| 89 | 93 | * class name used to store the identifier. |
| 90 | 94 | * |
| 95 | + * @param string $class |
|
| 91 | 96 | * @return string[] |
| 92 | 97 | */ |
| 93 | 98 | public function getIdentifierFieldNames(?string $class): array; |
@@ -119,6 +124,7 @@ discard block |
||
| 119 | 124 | * Removes an element from the collection. |
| 120 | 125 | * |
| 121 | 126 | * @param Collection<array-key, object> $collection |
| 127 | + * @return void |
|
| 122 | 128 | */ |
| 123 | 129 | public function collectionRemoveElement(Collection &$collection, object &$element): void; |
| 124 | 130 | |
@@ -126,6 +132,7 @@ discard block |
||
| 126 | 132 | * Add an element from the collection. |
| 127 | 133 | * |
| 128 | 134 | * @param Collection<array-key, object> $collection |
| 135 | + * @return void |
|
| 129 | 136 | */ |
| 130 | 137 | public function collectionAddElement(Collection &$collection, object &$element): void; |
| 131 | 138 | |
@@ -140,6 +147,7 @@ discard block |
||
| 140 | 147 | * Clear the collection. |
| 141 | 148 | * |
| 142 | 149 | * @param Collection<array-key, object> $collection |
| 150 | + * @return void |
|
| 143 | 151 | */ |
| 144 | 152 | public function collectionClear(Collection &$collection): void; |
| 145 | 153 | |
@@ -176,6 +184,7 @@ discard block |
||
| 176 | 184 | |
| 177 | 185 | /** |
| 178 | 186 | * @param string[] $idx |
| 187 | + * @return void |
|
| 179 | 188 | */ |
| 180 | 189 | public function addIdentifiersToQuery(string $class, ProxyQueryInterface $query, array $idx): void; |
| 181 | 190 | } |