1 | <?php |
||
19 | class Choice implements ChoiceInterface |
||
20 | { |
||
21 | use TypeHelperTrait; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $displayName = ''; |
||
27 | |||
28 | /** |
||
29 | * @var ChoiceInterface[]|string[]|integer[]|boolean[]|float[]|\DateTime[] |
||
30 | */ |
||
31 | protected $value = array(); |
||
32 | |||
33 | /** |
||
34 | * @var ChoiceInterface[] |
||
35 | */ |
||
36 | protected $choices = array(); |
||
37 | |||
38 | /** |
||
39 | * @return ChoiceInterface[] |
||
40 | */ |
||
41 | 1 | public function getChoices() |
|
42 | { |
||
43 | 1 | return $this->choices; |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param ChoiceInterface[] $choices |
||
48 | */ |
||
49 | 3 | public function setChoices(array $choices) |
|
50 | { |
||
51 | 3 | foreach ($choices as $value) { |
|
52 | 3 | $this->checkType('\\Dkd\\PhpCmis\\Definitions\\ChoiceInterface', $value); |
|
53 | 3 | } |
|
54 | |||
55 | 2 | $this->choices = $choices; |
|
56 | 2 | } |
|
57 | |||
58 | /** |
||
59 | * Return the display name of the choice value. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 1 | public function getDisplayName() |
|
67 | |||
68 | /** |
||
69 | * Sets the display name of the choice value. |
||
70 | * |
||
71 | * @return string $displayName |
||
72 | */ |
||
73 | 2 | public function setDisplayName($displayName) |
|
78 | |||
79 | /** |
||
80 | * Return the value of the choice value. |
||
81 | * |
||
82 | * @return ChoiceInterface[]|string[]|integer[]|boolean[]|float[]|\DateTime[] |
||
83 | */ |
||
84 | 1 | public function getValue() |
|
88 | |||
89 | /** |
||
90 | * Sets the value of the choice value. |
||
91 | * |
||
92 | * @param ChoiceInterface[]|string[]|integer[]|boolean[]|float[]|\DateTime[] $value |
||
93 | */ |
||
94 | 2 | public function setValue(array $value) |
|
98 | } |
||
99 |