src/Control/Middleware/HTTPCacheControlMiddleware.php
protected function setState($state)
    {
        if (!array_key_exists($state, $this->stateDirectives)) {
            throw new InvalidArgumentException("Invalid state {$state}");
        }
        $this->state = $state;
        return $this;
    }
protected function setState($state)
    {
        if (!array_key_exists($state, $this->stateDirectives)) {
            throw new InvalidArgumentException("Invalid state {$state}");
        }
        $this->state = $state;
        return $this;
    }
protected function setState ( $ state ) { if ( ! array_key_exists ( $ state , $ this -> stateDirectives ) ) { throw new InvalidArgumentException ( "Invalid state {$state}" ) ; } $ this -> state = $ state ; return $ this ; }
Set current state. Should only be invoked internally after processing precedence rules.

@param string $state
@return $this
Set current state . Should only be invoked internally after processing precedence rules .