1 | <?php |
||
10 | class Event |
||
11 | { |
||
12 | private $_command; |
||
13 | private $_output = []; |
||
14 | private $_result; |
||
15 | private $_server; |
||
16 | const TOKEN = 'b2b pushed'; |
||
17 | |||
18 | /** |
||
19 | * __construct |
||
20 | * |
||
21 | * @param string $command |
||
22 | * @param string $password |
||
23 | * $param array $server |
||
24 | * @access public |
||
25 | */ |
||
26 | public function __construct($command, $password, $server) |
||
39 | |||
40 | /** |
||
41 | * getResult |
||
42 | * |
||
43 | * @access public |
||
44 | * @return void |
||
45 | */ |
||
46 | public function getResult() |
||
56 | |||
57 | /** |
||
58 | * logResult |
||
59 | * |
||
60 | * @param string $file |
||
61 | * @access public |
||
62 | * @return void |
||
63 | */ |
||
64 | public function logResult($file) |
||
71 | |||
72 | /** |
||
73 | * logRequest |
||
74 | * |
||
75 | * @param string $file |
||
76 | * @access public |
||
77 | * @return void |
||
78 | */ |
||
79 | public function logRequest($file) |
||
100 | |||
101 | /** |
||
102 | * writeToFile |
||
103 | * |
||
104 | * Write to file |
||
105 | * |
||
106 | * @param string $file relative path to file for write the content |
||
107 | * Example: `bashexec.log` |
||
108 | * |
||
109 | * @param mixed $content String or array |
||
110 | * @access public |
||
111 | * @return void |
||
112 | */ |
||
113 | public function writeToFile($file, $content) |
||
122 | } |
||
123 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.