public function load($source)
	{
		// if $source is not a string, short-circuit
		if ( ! is_string($source)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, source, to be a string file name"
			);
		}
		
		// otherwise, create a new file chunker
		$chunker = new \Jstewmc\Chunker\File($source);
		
		return $this->create($chunker);
	}
public function load($source)
	{
		// if $source is not a string, short-circuit
		if ( ! is_string($source)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, source, to be a string file name"
			);
		}
		
		// otherwise, create a new file chunker
		$chunker = new \Jstewmc\Chunker\File($source);
		
		return $this->create($chunker);
	}
public function load ( $ source ) { // if $source is not a string, short-circuit if ( ! is_string ( $ source ) ) { throw new \ InvalidArgumentException ( __METHOD__ . "() expects parameter one, source, to be a string file name" ) ; } // otherwise, create a new file chunker $ chunker = new \ Jstewmc \ Chunker \ File ( $ source ) ; return $ this -> create ( $ chunker ) ; }
Creates a document from a file

@param  string  $source  the source's file name
@return  bool  true on success or false on failure
@throws  InvalidArgumentException  if $source is not a string
@throws  InvalidArgumentException  if $source does not exist or is not readable
@since  0.1.0
Creates a document from a file