WpOrg\Requests
Iri::__wakeup
Method of the class: Iri{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Iri = new Iri(); $Iri->__wakeup();
Iri::__wakeup() Iri:: wakeup code WP 6.9
public function __wakeup() {
$class_props = get_class_vars( __CLASS__ );
$string_props = array( 'scheme', 'iuserinfo', 'ihost', 'port', 'ipath', 'iquery', 'ifragment' );
$array_props = array( 'normalization' );
foreach ( $class_props as $prop => $default_value ) {
if ( in_array( $prop, $string_props, true ) && ! is_string( $this->$prop ) ) {
throw new UnexpectedValueException();
} elseif ( in_array( $prop, $array_props, true ) && ! is_array( $this->$prop ) ) {
throw new UnexpectedValueException();
}
$this->$prop = null;
}
}