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: * Method parameter description.
19: *
20: * @author David Grudl
21: *
22: * @method Parameter setName(string $name)
23: * @method Parameter setReference(bool $on)
24: * @method Parameter setTypeHint(string $class)
25: * @method Parameter setOptional(bool $on)
26: * @method Parameter setDefaultValue(mixed $value)
27: */
28: class Parameter extends Nette\Object
29: {
30: /** @var string */
31: public $name;
32:
33: /** @var bool */
34: public $reference;
35:
36: /** @var string */
37: public $typeHint;
38:
39: /** @var bool */
40: public $optional;
41:
42: /** @var mixed */
43: public $defaultValue;
44:
45:
46: public function __call($name, $args)
47: {
48: return Nette\ObjectMixin::callProperty($this, $name, $args);
49: }
50:
51: }
52: