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
17: {
18: use Nette\SmartObject;
19: use Traits\NameAware;
20: use Traits\VisibilityAware;
21: use Traits\CommentAware;
22:
23: /** @var mixed */
24: private $value;
25:
26:
27: /**
28: * @return static
29: */
30: public function setValue($val)
31: {
32: $this->value = $val;
33: return $this;
34: }
35:
36:
37: /**
38: * @return mixed
39: */
40: public function getValue()
41: {
42: return $this->value;
43: }
44: }
45: