getParsedBody(); if (empty($data->id)) { throw new BadRequest(); } $this->getEmailFolderService()->moveUp($data->id); return true; } public function postActionMoveDown(Request $request): bool { $data = $request->getParsedBody(); if (empty($data->id)) { throw new BadRequest(); } $this->getEmailFolderService()->moveDown($data->id); return true; } /** * @return array{ * list:array> * } */ public function getActionListAll(): array { return $this->getEmailFolderService()->listAll(); } private function getEmailFolderService(): Service { /** @var Service */ return $this->getRecordService(); } }