領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
500B

  1. <?php
  2. namespace App\Logic\Contract;
  3. class CreateManager extends ContractManager
  4. {
  5. public function create(): array
  6. {
  7. $messages = [];
  8. if (!$this->checkForCreate($messages)) {
  9. return $messages;
  10. }
  11. $this->save();
  12. return $messages;
  13. }
  14. private function checkForCreate(array &$messages): bool
  15. {
  16. $messages = [];
  17. $ret = true;
  18. $ret = $this->checkContractCode($messages, false);
  19. return $ret;
  20. }
  21. }