Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

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. }