@@ 53-60 (lines=8) @@ | ||
50 | * @param boolean $required |
|
51 | * @throws \InvalidArgumentException |
|
52 | */ |
|
53 | public function __construct($name, $type, $required = true) { |
|
54 | Assert::isString($name); |
|
55 | Assert::isString($type); |
|
56 | Assert::isBoolean($required); |
|
57 | $this->name = $name; |
|
58 | $this->type = $type; |
|
59 | $this->required = $required; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Returns the parameter name. |
@@ 56-65 (lines=10) @@ | ||
53 | * @param array $context |
|
54 | * @throws \InvalidArgumentException |
|
55 | */ |
|
56 | public function __construct($filename, $mode, $useIncludePath = false, array $context = array()) { |
|
57 | Assert::isString($filename); |
|
58 | Assert::isInteger($mode); |
|
59 | Assert::isBoolean($useIncludePath); |
|
60 | ||
61 | $this->filename = $filename; |
|
62 | $this->mode = $mode; |
|
63 | $this->useIncludePath = $useIncludePath; |
|
64 | $this->context = $context; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Returns the configuration file name. |