commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApproverHierarchyModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
26  protected $tiers;
27 
28 
32  public function __construct(
34  ) {
35  $this->tiers = $tiers;
36  }
37 
44  public function getTiers()
45  {
46  if (is_null($this->tiers)) {
48  $data = $this->raw(self::FIELD_TIERS);
49  if (is_null($data)) {
50  return null;
51  }
52  $this->tiers = ApproverConjunctionCollection::fromArray($data);
53  }
54 
55  return $this->tiers;
56  }
57 
58 
63  {
64  $this->tiers = $tiers;
65  }
66 }