bookmark_name = $bookmark_name; $this->namespace = 'html'; $this->node_name = $node_name; $this->has_self_closing_flag = $has_self_closing_flag; $this->on_destroy = $on_destroy; } /** * Destructor. * * @since 6.4.0 */ public function __destruct() { if ( is_callable( $this->on_destroy ) ) { call_user_func( $this->on_destroy, $this->bookmark_name ); } } /** * Unserialize magic method. * * @since 6.9.0 * * @param array $data Data to unserialize. */ public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound throw new \LogicException( __CLASS__ . ' should never be unserialized' ); } /** * Wakeup magic method. * * @since 6.4.2 */ public function __wakeup() { $this->__unserialize( array() ); } }