1 | <?php |
||
27 | class SoftKey implements ModelInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $sAction; |
||
33 | /** |
||
34 | * Displays the softkey name |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | private $sLabel; |
||
39 | /** |
||
40 | * |
||
41 | * URL information, or number |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | private $sCommandArgs; |
||
46 | /** |
||
47 | * Only for action=Dial. |
||
48 | * This specifies the account index to dial out the call from, starting from 0 for account 1 |
||
49 | * |
||
50 | * @var integer |
||
51 | */ |
||
52 | private $iCommandId; |
||
53 | |||
54 | /** |
||
55 | * SoftKey constructor. |
||
56 | * |
||
57 | * @param string $sAction |
||
58 | * @param string $sLabel |
||
59 | */ |
||
60 | public function __construct(string $sAction, string $sLabel) |
||
66 | |||
67 | /** |
||
68 | * @param integer $iCommandId |
||
69 | * |
||
70 | * @return SoftKey |
||
71 | */ |
||
72 | public function setCommandId(int $iCommandId = 0) |
||
80 | |||
81 | /** |
||
82 | * @param string $sCommandArgs |
||
83 | * |
||
84 | * @return SoftKey |
||
85 | */ |
||
86 | public function setCommandArgs(string $sCommandArgs) |
||
92 | |||
93 | /** |
||
94 | * @return MyXML |
||
95 | */ |
||
96 | public function getXml(): MyXML |
||
112 | |||
113 | /** |
||
114 | * @return string |
||
115 | */ |
||
116 | public function getCommandArgs() |
||
120 | |||
121 | /** |
||
122 | * @return integer |
||
123 | */ |
||
124 | public function getCommandId() |
||
128 | } |
||
129 |