public function setRequestOrder($requestOrder)
    {
        if (!is_string($requestOrder)) {
            throw new InvalidArgumentException('Expected requestOrder to be a string');
        }

        if (empty($requestOrder)) {
            throw new InvalidArgumentException('An empty string is not a valid requestOrder value');
        }

        $this->requestOrder = array_unique(str_split(strtoupper($requestOrder), 1));
    }
public function setRequestOrder($requestOrder)
    {
        if (!is_string($requestOrder)) {
            throw new InvalidArgumentException('Expected requestOrder to be a string');
        }

        if (empty($requestOrder)) {
            throw new InvalidArgumentException('An empty string is not a valid requestOrder value');
        }

        $this->requestOrder = array_unique(str_split(strtoupper($requestOrder), 1));
    }
public function setRequestOrder ( $ requestOrder ) { if ( ! is_string ( $ requestOrder ) ) { throw new InvalidArgumentException ( 'Expected requestOrder to be a string' ) ; } if ( empty ( $ requestOrder ) ) { throw new InvalidArgumentException ( 'An empty string is not a valid requestOrder value' ) ; } $ this -> requestOrder = array_unique ( str_split ( strtoupper ( $ requestOrder ) , 1 ) ) ; }
Set the request order.

@param string $requestOrder The order in which to check request collections for a value. [G = GET, P = POST, C = COOKIE, S = SESSION, E = ENV, H = SERVER]

@throws InvalidArgumentException
Set the request order .