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