public function maxAge($seconds = null) { if ($seconds !== null) { $this->_cacheDirectives['max-age'] = $seconds; $this->_setCacheControl(); } if (isset($this->_cacheDirectives['max-age'])) { return $this->_cacheDirectives['max-age']; } return null; }