| @@ 162-169 (lines=8) @@ | ||
| 159 | * |
|
| 160 | * @return void |
|
| 161 | */ |
|
| 162 | public function setUpdateAction($updateAction) |
|
| 163 | { |
|
| 164 | $updateAction = strtoupper($updateAction); |
|
| 165 | if (!in_array($updateAction, $this->getAvailableActions())) { |
|
| 166 | throw new \InvalidArgumentException(sprintf('Action %s does not exist.', $updateAction)); |
|
| 167 | } |
|
| 168 | $this->updateAction = $updateAction; |
|
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * Sets a delete action. |
|
| @@ 180-187 (lines=8) @@ | ||
| 177 | * |
|
| 178 | * @return void |
|
| 179 | */ |
|
| 180 | public function setDeleteAction($deleteAction) |
|
| 181 | { |
|
| 182 | $deleteAction = strtoupper($deleteAction); |
|
| 183 | if (!in_array($deleteAction, $this->getAvailableActions())) { |
|
| 184 | throw new \InvalidArgumentException(sprintf('Action %s does not exist.', $deleteAction)); |
|
| 185 | } |
|
| 186 | $this->deleteAction = $deleteAction; |
|
| 187 | } |
|
| 188 | ||
| 189 | /** |
|
| 190 | * Sets an update action on restrict. |
|