public function setCacheControl(int $cacheControl): StreamMetadataBuilder
    {
        if ($cacheControl < 0) {
            throw new InvalidArgumentException('CacheControl must be positive');
        }

        $this->cacheControl = $cacheControl;

        return $this;
    }
public function setCacheControl(int $cacheControl): StreamMetadataBuilder
    {
        if ($cacheControl < 0) {
            throw new InvalidArgumentException('CacheControl must be positive');
        }

        $this->cacheControl = $cacheControl;

        return $this;
    }
public function setCacheControl ( int $ cacheControl ) : StreamMetadataBuilder { if ( $ cacheControl < 0 ) { throw new InvalidArgumentException ( 'CacheControl must be positive' ) ; } $ this -> cacheControl = $ cacheControl ; return $ this ; }
Sets the amount of time for which the stream head is cachable
Sets the amount of time for which the stream head is cachable