commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartSetBillingAddressActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
18 use stdClass;
19 
24 {
29  private $address;
30 
38  public function getAddress()
39  {
40  return $this->address instanceof BaseAddressBuilder ? $this->address->build() : $this->address;
41  }
42 
47  public function withAddress(?BaseAddress $address)
48  {
49  $this->address = $address;
50 
51  return $this;
52  }
53 
58  public function withAddressBuilder(?BaseAddressBuilder $address)
59  {
60  $this->address = $address;
61 
62  return $this;
63  }
64 
66  {
68  $this->address instanceof BaseAddressBuilder ? $this->address->build() : $this->address
69  );
70  }
71 
72  public static function of(): CartSetBillingAddressActionBuilder
73  {
74  return new self();
75  }
76 }