2 ms·
You can set the visibility of both the properties and the getters/setters. class Foo { private $fuzz; protected $Bar {
by shakesbeard 14y ago
You can set the visibility of both the properties and the getters/setters.
class Foo {
private $fuzz;
protected $Bar {
get { return $this->fuzz; }
private set { $this->fuzz = $value; }
}
}
- jasonlotito 14y agoYes. I understand that. My point was just that he specifically wanted a read-only.