public function setSize($size)
	{
		if ( ! is_numeric($size) || ! is_int(+$size) || $size < 1) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, size, to be a positive integer"
			);	
		}
		
		$this->size = $size;
		
		return $this;
	}
public function setSize($size)
	{
		if ( ! is_numeric($size) || ! is_int(+$size) || $size < 1) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, size, to be a positive integer"
			);	
		}
		
		$this->size = $size;
		
		return $this;
	}
public function setSize ( $ size ) { if ( ! is_numeric ( $ size ) || ! is_int ( + $ size ) || $ size < 1 ) { throw new \ InvalidArgumentException ( __METHOD__ . "() expects parameter one, size, to be a positive integer" ) ; } $ this -> size = $ size ; return $ this ; }
Sets the chunker's chunk size

Heads up! This property is a size in *bytes* for file chunks and a size in
*characters* for text chunks.

@param  int  $size  the chunker's chunk size
@return self
@throws  InvalidArgumentException  if $size is not a positive integer
@since  0.1.0
Sets the chunker s chunk size