original_string: public function setTtl($ttl)
      {
          /**
           * @see Zend_Validate_Int
           */
          require_once 'Zend/Validate/Int.php';
          $validate = new Zend_Validate_Int();
          if (!$validate->isValid($ttl)) {
              /**
               * @see Zend_Feed_Builder_Exception
               */
              require_once 'Zend/Feed/Builder/Exception.php';
              throw new Zend_Feed_Builder_Exception("you have to set an integer value to the ttl property");
          }
          $this->offsetSet('ttl', $ttl);
          return $this;
      }
code: public function setTtl($ttl)
      {
          /**
           * @see Zend_Validate_Int
           */
          require_once 'Zend/Validate/Int.php';
          $validate = new Zend_Validate_Int();
          if (!$validate->isValid($ttl)) {
              /**
               * @see Zend_Feed_Builder_Exception
               */
              require_once 'Zend/Feed/Builder/Exception.php';
              throw new Zend_Feed_Builder_Exception("you have to set an integer value to the ttl property");
          }
          $this->offsetSet('ttl', $ttl);
          return $this;
      }
code_tokens: public function setTtl ( $ ttl ) { /**
           * @see Zend_Validate_Int
           */ require_once 'Zend/Validate/Int.php' ; $ validate = new Zend_Validate_Int ( ) ; if ( ! $ validate -> isValid ( $ ttl ) ) { /**
               * @see Zend_Feed_Builder_Exception
               */ require_once 'Zend/Feed/Builder/Exception.php' ; throw new Zend_Feed_Builder_Exception ( "you have to set an integer value to the ttl property" ) ; } $ this -> offsetSet ( 'ttl' , $ ttl ) ; return $ this ; }
docstring: How long in minutes a feed can be cached before refreshing
  Ignored if atom is used
  
  @param  int $ttl
  @return Zend_Feed_Builder_Header
  @throws Zend_Feed_Builder_Exception
docstring_tokens: How long in minutes a feed can be cached before refreshing Ignored if atom is used