Documentation

BlockString
in package

Table of Contents

value()  : mixed
Produces the value of a block string from its parsed raw value, similar to Coffeescript's block string, Python's docstring trim or Ruby's strip_heredoc.
leadingWhitespace()  : mixed

Methods

value()

Produces the value of a block string from its parsed raw value, similar to Coffeescript's block string, Python's docstring trim or Ruby's strip_heredoc.

public static value(mixed $rawString) : mixed

This implements the GraphQL spec's BlockStringValue() static algorithm.

Parameters
$rawString : mixed
Return values
mixed

leadingWhitespace()

private static leadingWhitespace(mixed $str) : mixed
Parameters
$str : mixed
Return values
mixed

Search results