commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
RuleRequesterModel.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
22final class RuleRequesterModel extends JsonObjectModel implements RuleRequester
23{
28 protected $associateRole;
29
30
34 public function __construct(
36 ) {
37 $this->associateRole = $associateRole;
38 }
39
46 public function getAssociateRole()
47 {
48 if (is_null($this->associateRole)) {
50 $data = $this->raw(self::FIELD_ASSOCIATE_ROLE);
51 if (is_null($data)) {
52 return null;
53 }
54
55 $this->associateRole = AssociateRoleKeyReferenceModel::of($data);
56 }
57
59 }
60
61
66 {
67 $this->associateRole = $associateRole;
68 }
69}
setAssociateRole(?AssociateRoleKeyReference $associateRole)
__construct(?AssociateRoleKeyReference $associateRole=null)