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

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