1 | <?php |
||
21 | class Alarm extends Component |
||
22 | { |
||
23 | /** |
||
24 | * Alarm ACTION property. |
||
25 | * |
||
26 | * According to RFC 5545: 3.8.6.1. Action |
||
27 | * |
||
28 | * @link http://tools.ietf.org/html/rfc5545#section-3.8.6.1 |
||
29 | */ |
||
30 | const ACTION_AUDIO = 'AUDIO'; |
||
31 | const ACTION_DISPLAY = 'DISPLAY'; |
||
32 | const ACTION_EMAIL = 'EMAIL'; |
||
33 | |||
34 | protected $action; |
||
35 | protected $repeat; |
||
36 | protected $duration; |
||
37 | protected $description; |
||
38 | protected $attendee; |
||
39 | protected $trigger; |
||
40 | |||
41 | 1 | public function getType() |
|
45 | |||
46 | public function getAction() |
||
47 | { |
||
48 | return $this->action; |
||
49 | } |
||
50 | |||
51 | public function getRepeat() |
||
52 | { |
||
53 | return $this->repeat; |
||
54 | } |
||
55 | |||
56 | public function getDuration() |
||
57 | { |
||
58 | return $this->duration; |
||
59 | } |
||
60 | |||
61 | public function getDescription() |
||
62 | { |
||
63 | return $this->description; |
||
64 | } |
||
65 | |||
66 | public function getAttendee() |
||
67 | { |
||
68 | return $this->attendee; |
||
69 | } |
||
70 | |||
71 | public function getTrigger() |
||
72 | { |
||
73 | return $this->trigger; |
||
74 | } |
||
75 | |||
76 | 1 | public function setAction($action) |
|
82 | |||
83 | public function setRepeat($repeat) |
||
84 | { |
||
85 | $this->repeat = $repeat; |
||
86 | |||
87 | return $this; |
||
88 | } |
||
89 | |||
90 | public function setDuration($duration) |
||
91 | { |
||
92 | $this->duration = $duration; |
||
93 | |||
94 | return $this; |
||
95 | } |
||
96 | |||
97 | 1 | public function setDescription($description) |
|
103 | |||
104 | public function setAttendee($attendee) |
||
105 | { |
||
106 | $this->attendee = $attendee; |
||
107 | |||
108 | return $this; |
||
109 | } |
||
110 | |||
111 | 1 | public function setTrigger($trigger) |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 1 | public function buildPropertyBag() |
|
122 | { |
||
123 | 1 | $propertyBag = new PropertyBag(); |
|
124 | |||
125 | 1 | if (null != $this->trigger) { |
|
126 | 1 | $propertyBag->set('TRIGGER', $this->trigger); |
|
151 | } |
||
152 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.