WpOrg\Requests
Iri::__construct()
Create a new IRI object, from a specified string
Method of the class: Iri{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Iri = new Iri(); $Iri->__construct( $iri );
- $iri(string|Stringable|null)
- -
Default: null
Iri::__construct() Iri:: construct code WP 6.6.2
public function __construct($iri = null) { if ($iri !== null && InputValidator::is_string_or_stringable($iri) === false) { throw InvalidArgument::create(1, '$iri', 'string|Stringable|null', gettype($iri)); } $this->set_iri($iri); }