commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomerSetVatIdActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class CustomerSetVatIdActionBuilder implements Builder
22 {
27  private $vatId;
28 
36  public function getVatId()
37  {
38  return $this->vatId;
39  }
40 
45  public function withVatId(?string $vatId)
46  {
47  $this->vatId = $vatId;
48 
49  return $this;
50  }
51 
52 
53  public function build(): CustomerSetVatIdAction
54  {
55  return new CustomerSetVatIdActionModel(
56  $this->vatId
57  );
58  }
59 
60  public static function of(): CustomerSetVatIdActionBuilder
61  {
62  return new self();
63  }
64 }