public function cacheControl($cacheControl)
    {
        if (!($cacheControl instanceof CacheControl)) {
            $cacheControl = RequestCacheControl::fromString($cacheControl);
        }

        $this->cacheControl = $cacheControl;

        return $this;
    }
public function cacheControl($cacheControl)
    {
        if (!($cacheControl instanceof CacheControl)) {
            $cacheControl = RequestCacheControl::fromString($cacheControl);
        }

        $this->cacheControl = $cacheControl;

        return $this;
    }
public function cacheControl ( $ cacheControl ) { if ( ! ( $ cacheControl instanceof CacheControl ) ) { $ cacheControl = RequestCacheControl :: fromString ( $ cacheControl ) ; } $ this -> cacheControl = $ cacheControl ; return $ this ; }
Set a cache-control header to all responses.

@param string|CacheControl $cacheControl

@return self
Set a cache - control header to all responses .