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.

25 lines
499B

  1. <?php
  2. namespace App\Email\Members;
  3. use App\Email\BaseEmailer;
  4. use App\Kintone\Models\Customer;
  5. abstract class Members extends BaseEmailer
  6. {
  7. public function __construct(protected Customer $customer)
  8. {
  9. $this->setEmail($customer->email);
  10. }
  11. public function getParams(): array
  12. {
  13. return array_merge($this->getMemberParams(), [
  14. 'customer_name' => $this->customer->customerName
  15. ]);
  16. }
  17. abstract public function getMemberParams(): array;
  18. }