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;
    }
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;
    }
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 ; }
Set the batch size.

@param int|null $batchSize The batch size.

@return \Mandango\Query The query instance (fluent interface).

@api
Set the batch size .