public function ParseException::setSnippet in Currency 7.2
Sets the snippet of code near the error.
Parameters
string $snippet The code snippet:
File
- currency/
vendor/ symfony/ yaml/ Exception/ ParseException.php, line 64
Class
- ParseException
- Exception class thrown when an error occurs during parsing.
Namespace
Symfony\Component\Yaml\ExceptionCode
public function setSnippet($snippet) {
$this->snippet = $snippet;
$this
->updateRepr();
}