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