WpOrg\Requests

Iri::__wakeup()publicWP 1.0

Method of the class: Iri{}

No Hooks.

Return

null. Nothing (null).

Usage

$Iri = new Iri();
$Iri->__wakeup();

Iri::__wakeup() code WP 6.6.2

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;
	}
}