commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
RemoveParcelFromDeliveryDraftModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
26  protected $parcelId;
27 
28 
32  public function __construct(
33  ?string $parcelId = null
34  ) {
35  $this->parcelId = $parcelId;
36  }
37 
42  public function getParcelId()
43  {
44  if (is_null($this->parcelId)) {
46  $data = $this->raw(self::FIELD_PARCEL_ID);
47  if (is_null($data)) {
48  return null;
49  }
50  $this->parcelId = (string) $data;
51  }
52 
53  return $this->parcelId;
54  }
55 
56 
60  public function setParcelId(?string $parcelId): void
61  {
62  $this->parcelId = $parcelId;
63  }
64 }