original_string: public function batchSize($batchSize)
      {
          if (null !== $batchSize) {
              if (!is_numeric($batchSize) || $batchSize != (int) $batchSize) {
                  throw new \InvalidArgumentException('The batchSize is not valid.');
              }
              $batchSize = (int) $batchSize;
          }
  
          $this->batchSize = $batchSize;
  
          return $this;
      }
code: public function batchSize($batchSize)
      {
          if (null !== $batchSize) {
              if (!is_numeric($batchSize) || $batchSize != (int) $batchSize) {
                  throw new \InvalidArgumentException('The batchSize is not valid.');
              }
              $batchSize = (int) $batchSize;
          }
  
          $this->batchSize = $batchSize;
  
          return $this;
      }
code_tokens: public function batchSize ( $ batchSize ) { if ( null !== $ batchSize ) { if ( ! is_numeric ( $ batchSize ) || $ batchSize != ( int ) $ batchSize ) { throw new \ InvalidArgumentException ( 'The batchSize is not valid.' ) ; } $ batchSize = ( int ) $ batchSize ; } $ this -> batchSize = $ batchSize ; return $ this ; }
docstring: Set the batch size.
  
  @param int|null $batchSize The batch size.
  
  @return \Mandango\Query The query instance (fluent interface).
  
  @api
docstring_tokens: Set the batch size .