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