original_string: public function expires($time)
      {
          if (!empty($time) && is_string($time) && !$timestamp = strtotime($time)) {
              throw new \Ergo\Routing\Exception("Invalid expiry time: $timestamp");
          } else if (is_numeric($time)) {
              $timestamp = $time;
          } else if ($time == false) {
              return $this;
          }
  
          $this->addHeader('Expires', date('r', $timestamp));
  
          return $this;
      }
code: public function expires($time)
      {
          if (!empty($time) && is_string($time) && !$timestamp = strtotime($time)) {
              throw new \Ergo\Routing\Exception("Invalid expiry time: $timestamp");
          } else if (is_numeric($time)) {
              $timestamp = $time;
          } else if ($time == false) {
              return $this;
          }
  
          $this->addHeader('Expires', date('r', $timestamp));
  
          return $this;
      }
code_tokens: public function expires ( $ time ) { if ( ! empty ( $ time ) && is_string ( $ time ) && ! $ timestamp = strtotime ( $ time ) ) { throw new \ Ergo \ Routing \ Exception ( "Invalid expiry time: $timestamp" ) ; } else if ( is_numeric ( $ time ) ) { $ timestamp = $ time ; } else if ( $ time == false ) { return $ this ; } $ this -> addHeader ( 'Expires' , date ( 'r' , $ timestamp ) ) ; return $ this ; }
docstring: Sets the Expires header based on a Unix timestamp.
  @param int Unix timestamp
  @chainable
docstring_tokens: Sets the Expires header based on a Unix timestamp .