Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function run() |
||
39 | { |
||
40 | $this->header('Content-Type: text/html'); |
||
41 | ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
||
42 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||
43 | <html xmlns="http://www.w3.org/1999/xhtml"> |
||
44 | <head> |
||
45 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
||
46 | <title>Ping 8.8.8.8</title> |
||
47 | </head> |
||
48 | <body> |
||
49 | <h1>Latency to 8.8.8.8:</h1> |
||
50 | <?php echo round($this->job->getResult('pingjob'), 4) * 1000; |
||
51 | ?> ms. |
||
52 | </body> |
||
53 | </html><?php |
||
54 | |||
55 | } |
||
56 | } |
||
57 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.