/** * Destroys the instance and detaches it from the registry. * * @return void */ public function __destroy() { Registry::destroy($this); }