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: /**
21: * @param string
22: */
23: public function __construct($value)
24: {
25: $this->value = (string) $value;
26: }
27:
28:
29: /**
30: * @return string
31: */
32: public function __toString()
33: {
34: return $this->value;
35: }
36: }
37: