set_iri example

call_user_func(array($this, 'set_' . $name), '');
        }
    }

    /** * Create a new IRI object, from a specified string * * @param string $iri */
    public function __construct($iri = null)
    {
        $this->set_iri($iri);
    }

    /** * Clean up */
    public function __destruct() {
        $this->set_iri(null, true);
        $this->set_path(null, true);
        $this->set_authority(null, true);
    }

    

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

    /** * Create a new IRI object by resolving a relative IRI * * Returns false if $base is not absolute, otherwise an IRI. * * @param \WpOrg\Requests\Iri|string $base (Absolute) Base IRI * @param \WpOrg\Requests\Iri|string $relative Relative IRI * @return \WpOrg\Requests\Iri|false */
    
Home | Imprint | This part of the site doesn't use cookies.