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

@param  string  $string  the source string
@return  bool  true if great success!
@throws  InvalidArgumentException  if $string is not a string
@since  0.1.0
Creates a document from a string