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: use Nette;
11:
12:
13: /**
14: * Class constant.
15: */
16: class Constant extends Member
17: {
18: /** @var mixed */
19: private $value;
20:
21:
22: /**
23: * @return static
24: */
25: public function setValue($val)
26: {
27: $this->value = $val;
28: return $this;
29: }
30:
31:
32: /**
33: * @return mixed
34: */
35: public function getValue()
36: {
37: return $this->value;
38: }
39:
40: }
41: