public function __unset($name) { if ($name === 'id') { trigger_error("The '\$id' property is read-only", E_DEPRECATED); return; } }