- Output for 5.3.0 - 5.3.21, 5.4.0 - 5.4.11
- Parse error: syntax error, unexpected '{', expecting ',' or ';' in uFfLD on line 6
Process exited with code 255.
<?php
class TimePeriod {
private $Seconds; // <-- Traditional Property
public $Hours { // <-- Guarded Property
get() { return $this->Seconds / 3600; }
set($x) { $this->Seconds = $x * 3600; }
isset() { return isset($this->Seconds); }
unset() { unset($this->Seconds); }
}
}
$tp = new TimePeriod();