@@ 34-41 (lines=8) @@ | ||
31 | * @return string |
|
32 | * @throws InvalidAttributeException |
|
33 | */ |
|
34 | public function getObjectPurpose() |
|
35 | { |
|
36 | $allowed = [static::OBJECT_PURPOSE_QUOTE, static::OBJECT_PURPOSE_PURCHASE]; |
|
37 | ||
38 | return $this->attributes->mustHave('object_purpose')->asString(function ($value) use ($allowed) { |
|
39 | return in_array($value, $allowed, true); |
|
40 | }); |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * First and Last Name of the addressee |
@@ 35-42 (lines=8) @@ | ||
32 | * @return string |
|
33 | * @throws InvalidAttributeException |
|
34 | */ |
|
35 | public function getObjectPurpose() |
|
36 | { |
|
37 | $allowed = [static::OBJECT_PURPOSE_QUOTE, static::OBJECT_PURPOSE_PURCHASE]; |
|
38 | ||
39 | return $this->attributes->mustHave('object_purpose')->asString(function ($value) use ($allowed) { |
|
40 | return in_array($value, $allowed, true); |
|
41 | }); |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * ID of the Address object that should be used as sender Address. |