1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: */
7:
8: namespace Nette\Utils\PhpGenerator;
9:
10: use Nette;
11:
12:
13: /**
14: * Class property description.
15: *
16: * @author David Grudl
17: *
18: * @method Property setName(string $name)
19: * @method Property setValue(mixed $value)
20: * @method Property setStatic(bool $on)
21: * @method Property setVisibility(string $access)
22: * @method Property addDocument(string $doc)
23: */
24: class Property extends Nette\Object
25: {
26: /** @var string */
27: public $name;
28:
29: /** @var mixed */
30: public $value;
31:
32: /** @var bool */
33: public $static;
34:
35: /** @var string public|protected|private */
36: public $visibility = 'public';
37:
38: /** @var array of string */
39: public $documents = array();
40:
41:
42: public function __call($name, $args)
43: {
44: return Nette\ObjectMixin::callProperty($this, $name, $args);
45: }
46:
47: }
48: