/** * Set delta seconds. * * @param int $deltaSeconds * * @return $this * * @throws InvalidHeaderValueException */ public function setDeltaSeconds($deltaSeconds) { $this->deltaSeconds = GenericHeader::computeDeltaSeconds($deltaSeconds); return $this; }
/** * Set cookie max age. * * @param int $deltaSeconds * * @return $this */ public function setMaxAge($deltaSeconds) { $this->set('max-age', GenericHeader::computeDeltaSeconds($deltaSeconds)); return $this; }