Inpsyde\MultilingualPress\Common\Nonce\OriginalRequestContext::__construct PHP Method

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( )
    public function __construct()
    {
        if (!isset($this->types)) {
            $this->types = isset($_SERVER['REQUEST_METHOD']) && 'POST' === strtoupper($_SERVER['REQUEST_METHOD']) ? [INPUT_GET, INPUT_POST] : [INPUT_GET];
        }
    }