You are here

public function ParseException::setSnippet in Lockr 7.3

Sets the snippet of code near the error.

Parameters

string $snippet The code snippet:

File

vendor/symfony/yaml/Exception/ParseException.php, line 60

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();
}