| @@ 52-66 (lines=15) @@ | ||
| 49 | * |
|
| 50 | * @param array $options |
|
| 51 | */ |
|
| 52 | public function __construct(array $options = []) |
|
| 53 | { |
|
| 54 | if (isset($options['id'])) { |
|
| 55 | $this->id = $options['id']; |
|
| 56 | } |
|
| 57 | if (isset($options['contact_id'])) { |
|
| 58 | $this->contactId = $options['contact_id']; |
|
| 59 | } |
|
| 60 | if (isset($options['type'])) { |
|
| 61 | $this->type = $options['type']; |
|
| 62 | } |
|
| 63 | if (isset($options['data'])) { |
|
| 64 | $this->data = $options['data']; |
|
| 65 | } |
|
| 66 | } |
|
| 67 | ||
| 68 | ||
| 69 | /** |
|
| @@ 40-54 (lines=15) @@ | ||
| 37 | * |
|
| 38 | * @param array $options |
|
| 39 | */ |
|
| 40 | public function __construct(array $options = []) |
|
| 41 | { |
|
| 42 | if (isset($options['id'])) { |
|
| 43 | $this->id = $options['id']; |
|
| 44 | } |
|
| 45 | if (isset($options['name'])) { |
|
| 46 | $this->name = $options['name']; |
|
| 47 | } |
|
| 48 | if (isset($options['page'])) { |
|
| 49 | $this->page = $options['page']; |
|
| 50 | } |
|
| 51 | if (isset($options['domain'])) { |
|
| 52 | $this->page = $options['domain']; |
|
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| 56 | ||
| 57 | /** |
|