1 | <?php |
||
7 | class ViewMode extends \ArrayObject |
||
8 | { |
||
9 | use EntityTrait; |
||
10 | |||
11 | /** |
||
12 | * @param array $array |
||
13 | */ |
||
14 | public function __construct(array $array = []) |
||
18 | |||
19 | /** |
||
20 | * Sets the 'id' parameter. |
||
21 | * |
||
22 | * @param string $id |
||
23 | * |
||
24 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
25 | * |
||
26 | * @return \Acquia\LiftClient\Entity\ViewMode |
||
27 | */ |
||
28 | public function setId($id) |
||
29 | { |
||
30 | if (!is_string($id)) { |
||
31 | throw new LiftSdkException('Argument must be an instance of string.'); |
||
32 | } |
||
33 | $this['id'] = $id; |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Gets the 'id' parameter. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getId() |
||
47 | |||
48 | /** |
||
49 | * Gets the 'id' parameter. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getLabel() |
||
57 | |||
58 | /** |
||
59 | * Gets the 'url' parameter. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getUrl() |
||
67 | |||
68 | /** |
||
69 | * Gets the 'html' parameter. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getHtml() |
||
77 | |||
78 | /** |
||
79 | * Gets the 'preview_image' parameter. |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getPreviewImage() |
||
87 | } |
||
88 |