public function ParseException::setSnippet

Sets the snippet of code near the error.

Parameters

string $snippet The code snippet:

File

drupal/core/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php, line 64

Class

ParseException
Exception class thrown when an error occurs during parsing.

Namespace

Symfony\Component\Yaml\Exception

Code

public function setSnippet($snippet) {
  $this->snippet = $snippet;
  $this
    ->updateRepr();
}