src/Behat/Gherkin/Loader/ArrayLoader.php
protected function loadPyStringHash(array $hash, $line = 0)
    {
        $line = isset($hash['line']) ? $hash['line'] : $line;

        $strings = array();
        foreach (explode("\n", $hash['text']) as $string) {
            $strings[] = $string;
        }

        return new PyStringNode($strings, $line);
    }
protected function loadPyStringHash(array $hash, $line = 0)
    {
        $line = isset($hash['line']) ? $hash['line'] : $line;

        $strings = array();
        foreach (explode("\n", $hash['text']) as $string) {
            $strings[] = $string;
        }

        return new PyStringNode($strings, $line);
    }
protected function loadPyStringHash ( array $ hash , $ line = 0 ) { $ line = isset ( $ hash [ 'line' ] ) ? $ hash [ 'line' ] : $ line ; $ strings = array ( ) ; foreach ( explode ( "\n" , $ hash [ 'text' ] ) as $ string ) { $ strings [ ] = $ string ; } return new PyStringNode ( $ strings , $ line ) ; }
Loads PyString from provided hash.

@param array   $hash PyString hash
@param integer $line

@return PyStringNode
Loads PyString from provided hash .