1 | <?php |
||
7 | class PortCheck extends Base |
||
8 | { |
||
9 | /** |
||
10 | * Check the target. |
||
11 | * |
||
12 | * @return Result |
||
13 | */ |
||
14 | 1 | public function check() |
|
26 | |||
27 | /** |
||
28 | * Get hostname and IP. |
||
29 | * |
||
30 | * @param $hostname |
||
31 | * @return mixed |
||
32 | */ |
||
33 | 1 | protected function hosnameAndIp($hostname, $ipAdress) |
|
37 | |||
38 | /** |
||
39 | * Make the result. |
||
40 | * |
||
41 | * @param bool $ipAddress |
||
42 | * @return Result |
||
43 | */ |
||
44 | 1 | protected function makeFinalResult($ipAddress): Result |
|
57 | |||
58 | 1 | public function portCheck($ipAddress, $port, $timeout) |
|
70 | |||
71 | /** |
||
72 | * @param $ipAddress |
||
73 | * @return bool |
||
74 | */ |
||
75 | 1 | protected function portIsNotConnectable($ipAddress): bool |
|
83 | } |
||
84 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.