commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ItemShippingDetailsDraftBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $targets;
28 
35  public function getTargets()
36  {
37  return $this->targets;
38  }
39 
44  public function withTargets(?ItemShippingTargetCollection $targets)
45  {
46  $this->targets = $targets;
47 
48  return $this;
49  }
50 
51 
52  public function build(): ItemShippingDetailsDraft
53  {
55  $this->targets
56  );
57  }
58 
59  public static function of(): ItemShippingDetailsDraftBuilder
60  {
61  return new self();
62  }
63 }