src/Application/Site/Command/EditSiteBillingInformation/EditSiteBillingInformationCommand.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Application\Site\Command\EditSiteBillingInformation;
  4. use App\Application\Site\Command\BillingInformationTrait;
  5. use App\Infrastructure\Shared\Bus\Command\CommandInterface;
  6. class EditSiteBillingInformationCommand implements CommandInterface
  7. {
  8.     use BillingInformationTrait;
  9.     public function __construct(
  10.         public readonly string $id,
  11.         string $name,
  12.         string $country,
  13.         string $city,
  14.         string $street,
  15.         string $streetNumber,
  16.         string $postalCode,
  17.         string $iban,
  18.         bool $isBankWebhook
  19.     ) {
  20.         $this->billingInfoName $name;
  21.         $this->billingInfoCountry $country;
  22.         $this->billingInfoCity $city;
  23.         $this->billingInfoStreet $street;
  24.         $this->billingInfoStreetNumber $streetNumber;
  25.         $this->billingInfoPostalCode $postalCode;
  26.         $this->billingInfoIban $iban;
  27.         $this->isBankWebhook $isBankWebhook
  28.     }
  29. }