original_string: public static function decode($rules = null)
  	{
  		$parser = new static;
  
  		if (is_string($rules) && trim($rules) !== '') {
  			$parser->rules = Collection::make(explode('|', $rules));
  		} else {
  			$parser->rules = new Collection;
  		}
  
  		return $parser;
  	}
code: public static function decode($rules = null)
  	{
  		$parser = new static;
  
  		if (is_string($rules) && trim($rules) !== '') {
  			$parser->rules = Collection::make(explode('|', $rules));
  		} else {
  			$parser->rules = new Collection;
  		}
  
  		return $parser;
  	}
code_tokens: public static function decode ( $ rules = null ) { $ parser = new static ; if ( is_string ( $ rules ) && trim ( $ rules ) !== '' ) { $ parser -> rules = Collection :: make ( explode ( '|' , $ rules ) ) ; } else { $ parser -> rules = new Collection ; } return $ parser ; }
docstring: Creates an instance for the given rules.
  
  @param  null|string $rules
  
  @return self
docstring_tokens: Creates an instance for the given rules .