Starting with 3.0.5, PHPDS_dependant offers a little new trick: read-only fields.
The problem is, when in a class you have a field which should be readable but not writable, you are often lead to make it protected and write an accessor. The resulting code is, well, not really smart:
class service extends PHPDS_dependant
{
protected $quality = 'great';
public function quality()
{
return $this->quality;
}
}
From now on, just add the field, it will be read-only by default.