public function __construct($propertyName) { parent::__construct(sprintf('Property "%s" is read-only.', $propertyName)); }