1 | <?php |
||
8 | class AdapterChainEvent extends Event |
||
9 | { |
||
10 | /** |
||
11 | * getIdentity |
||
12 | * |
||
13 | * @return mixed |
||
14 | */ |
||
15 | public function getIdentity() |
||
19 | |||
20 | /** |
||
21 | * setIdentity |
||
22 | * |
||
23 | * @param mixed $identity |
||
24 | * @return AdapterChainEvent |
||
25 | */ |
||
26 | public function setIdentity($identity = null) |
||
36 | |||
37 | /** |
||
38 | * getCode |
||
39 | * |
||
40 | * @return int |
||
41 | */ |
||
42 | public function getCode() |
||
46 | |||
47 | /** |
||
48 | * setCode |
||
49 | * |
||
50 | * @param int $code |
||
51 | * @return AdapterChainEvent |
||
52 | */ |
||
53 | public function setCode($code = null) |
||
58 | |||
59 | /** |
||
60 | * getMessages |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | public function getMessages() |
||
68 | |||
69 | /** |
||
70 | * setMessages |
||
71 | * |
||
72 | * @param array $messages |
||
73 | * @return AdapterChainEvent |
||
74 | */ |
||
75 | public function setMessages($messages = array()) |
||
80 | |||
81 | /** |
||
82 | * getRequest |
||
83 | * |
||
84 | * @return Request |
||
85 | */ |
||
86 | public function getRequest() |
||
90 | |||
91 | /** |
||
92 | * setRequest |
||
93 | * |
||
94 | * @param Request $request |
||
95 | * @return AdapterChainEvent |
||
96 | */ |
||
97 | public function setRequest(Request $request) |
||
103 | } |
||
104 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: