protected static function readWord(\Jstewmc\Stream\Stream $stream) 
	{
		$word = '';
				
		// if the current character is an alphabetic character
		if (ctype_alpha($stream->current())) {
			// loop through the alphabetic characters and build the word
			while (ctype_alpha($stream->current())) {
				$word .= $stream->current();
				$stream->next();
			}
		} else {
			throw new \InvalidArgumentException(
				__METHOD__."() expects the current element in parameter one, characters, "
					. "to be an alphabetic character"	
			);
		}
		
		return $word;
	}
protected static function readWord(\Jstewmc\Stream\Stream $stream) 
	{
		$word = '';
				
		// if the current character is an alphabetic character
		if (ctype_alpha($stream->current())) {
			// loop through the alphabetic characters and build the word
			while (ctype_alpha($stream->current())) {
				$word .= $stream->current();
				$stream->next();
			}
		} else {
			throw new \InvalidArgumentException(
				__METHOD__."() expects the current element in parameter one, characters, "
					. "to be an alphabetic character"	
			);
		}
		
		return $word;
	}
protected static function readWord ( \ Jstewmc \ Stream \ Stream $ stream ) { $ word = '' ; // if the current character is an alphabetic character if ( ctype_alpha ( $ stream -> current ( ) ) ) { // loop through the alphabetic characters and build the word while ( ctype_alpha ( $ stream -> current ( ) ) ) { $ word .= $ stream -> current ( ) ; $ stream -> next ( ) ; } } else { throw new \ InvalidArgumentException ( __METHOD__ . "() expects the current element in parameter one, characters, " . "to be an alphabetic character" ) ; } return $ word ; }
Reads a control word's word from the character stream

@param  Jstewmc\Stream  $stream  a stream of characters (the current character
must be a alphabetic character)
@return  string
@throws  InvalidArgumentException  if the current element in $stream is not
an alphabetic character
@since  0.1.0
@since  0.2.0  replace argument $characters, an array of characters, with $stream
an instance of Jstewmc\Stream
Reads a control word s word from the character stream