領収証発行サービス
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.

33 lines
606B

  1. <?php
  2. namespace App\Logic\ReceiptIssuingOrder;
  3. use App\Exceptions\AppCommonException;
  4. use App\Logic\SMS\SMSManager;
  5. use App\Models\ReceiptIssuingOrder;
  6. class UpdateManager extends ReceiptIssuingOrderManager
  7. {
  8. public function __construct(
  9. protected ReceiptIssuingOrder $order,
  10. protected SMSManager $smsManager
  11. ) {
  12. parent::__construct($order);
  13. }
  14. public function fill(array $attr)
  15. {
  16. $this->order->fill($attr);
  17. return $this;
  18. }
  19. public function update()
  20. {
  21. // モデル更新
  22. $this->save();
  23. return [];
  24. }
  25. }