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: * @package Nette\Utils\PhpGenerator
7: */
8:
9:
10:
11: /**
12: * Class property description.
13: *
14: * @author David Grudl
15: *
16: * @method Property setName(string $name)
17: * @method Property setValue(mixed $value)
18: * @method Property setStatic(bool $on)
19: * @method Property setVisibility(string $access)
20: * @method Property addDocument(string $doc)
21: * @package Nette\Utils\PhpGenerator
22: */
23: class NPhpProperty extends NObject
24: {
25: /** @var string */
26: public $name;
27:
28: /** @var mixed */
29: public $value;
30:
31: /** @var bool */
32: public $static;
33:
34: /** @var string public|protected|private */
35: public $visibility = 'public';
36:
37: /** @var array of string */
38: public $documents = array();
39:
40:
41: public function __call($name, $args)
42: {
43: return NObjectMixin::callProperty($this, $name, $args);
44: }
45:
46: }
47: