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