public function setPreFlightCacheMaxAge(int $cacheMaxAge): self
    {
        \assert($cacheMaxAge >= 0);

        $this->preFlightCacheMaxAge   = $cacheMaxAge;
        $this->isPreFlightCanBeCached = $cacheMaxAge > 0;

        return $this;
    }
public function setPreFlightCacheMaxAge(int $cacheMaxAge): self
    {
        \assert($cacheMaxAge >= 0);

        $this->preFlightCacheMaxAge   = $cacheMaxAge;
        $this->isPreFlightCanBeCached = $cacheMaxAge > 0;

        return $this;
    }
public function setPreFlightCacheMaxAge ( int $ cacheMaxAge ) : self { \ assert ( $ cacheMaxAge >= 0 ) ; $ this -> preFlightCacheMaxAge = $ cacheMaxAge ; $ this -> isPreFlightCanBeCached = $ cacheMaxAge > 0 ; return $ this ; }
Set pre-flight cache max period in seconds.

@param int $cacheMaxAge

@return self
Set pre - flight cache max period in seconds .