1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\PhpGenerator;
9:
10:
11: /**
12: * PHP literal value.
13: */
14: class PhpLiteral
15: {
16: /** @var string */
17: private $value;
18:
19:
20: public function __construct($value)
21: {
22: $this->value = (string) $value;
23: }
24:
25:
26: /**
27: * @return string
28: */
29: public function __toString()
30: {
31: return $this->value;
32: }
33:
34: }
35: