@@ -1,21 +1,21 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - Trait definition: [NelsonMartell] PropertiesHandler |
|
7 | - * |
|
8 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | - * |
|
10 | - * Licensed under The MIT License (MIT) |
|
11 | - * For full copyright and license information, please see the LICENSE |
|
12 | - * Redistributions of files must retain the above copyright notice. |
|
13 | - * |
|
14 | - * @copyright 2015-2016 Nelson Martell |
|
15 | - * @link http://nelson6e65.github.io/php_nml/ |
|
16 | - * @since v0.5.0 |
|
17 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - Trait definition: [NelsonMartell] PropertiesHandler |
|
7 | + * |
|
8 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | + * |
|
10 | + * Licensed under The MIT License (MIT) |
|
11 | + * For full copyright and license information, please see the LICENSE |
|
12 | + * Redistributions of files must retain the above copyright notice. |
|
13 | + * |
|
14 | + * @copyright 2015-2016 Nelson Martell |
|
15 | + * @link http://nelson6e65.github.io/php_nml/ |
|
16 | + * @since v0.5.0 |
|
17 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | + * */ |
|
19 | 19 | |
20 | 20 | namespace NelsonMartell { |
21 | 21 | |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | |
122 | 122 | if (property_exists($this, $name) === false) { |
123 | 123 | $args = [ |
124 | - 'class' => typeof($this)->Name, |
|
125 | - 'property' => $name, |
|
124 | + 'class' => typeof($this)->Name, |
|
125 | + 'property' => $name, |
|
126 | 126 | ]; |
127 | 127 | |
128 | 128 | $msg = nml_msg('Property "{class}::{property}" do not exists.', $args); |
@@ -153,8 +153,8 @@ discard block |
||
153 | 153 | |
154 | 154 | if (method_exists($this, $name) === false) { |
155 | 155 | $args = [ |
156 | - 'class' => typeof($this)->Name, |
|
157 | - 'method' => $name, |
|
156 | + 'class' => typeof($this)->Name, |
|
157 | + 'method' => $name, |
|
158 | 158 | ]; |
159 | 159 | |
160 | 160 | $msg = nml_msg('Method "{class}::{method}" do not exists.', $args); |
@@ -182,8 +182,8 @@ discard block |
||
182 | 182 | $setter = $this->ensureMethodExists($setter); |
183 | 183 | } catch (BadMethodCallException $error) { |
184 | 184 | $args = [ |
185 | - 'class' => typeof($this)->Name, |
|
186 | - 'name' => $name, |
|
185 | + 'class' => typeof($this)->Name, |
|
186 | + 'name' => $name, |
|
187 | 187 | ]; |
188 | 188 | |
189 | 189 | $msg = nml_msg('Property "{class}::{name}" has not a setter.', $args); |
@@ -211,8 +211,8 @@ discard block |
||
211 | 211 | $getter = $this->ensureMethodExists($getter); |
212 | 212 | } catch (BadMethodCallException $error) { |
213 | 213 | $args = [ |
214 | - 'class' => typeof($this)->Name, |
|
215 | - 'name' => $name, |
|
214 | + 'class' => typeof($this)->Name, |
|
215 | + 'name' => $name, |
|
216 | 216 | ]; |
217 | 217 | |
218 | 218 | $msg = nml_msg('Property "{class}::{name}" has not a getter.', $args); |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - Interface definition: [NelsonMartell\Collections] IList |
|
7 | - * |
|
8 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | - * |
|
10 | - * Licensed under The MIT License (MIT) |
|
11 | - * For full copyright and license information, please see the LICENSE |
|
12 | - * Redistributions of files must retain the above copyright notice. |
|
13 | - * |
|
14 | - * @copyright 2015-2016 Nelson Martell |
|
15 | - * @link http://nelson6e65.github.io/php_nml/ |
|
16 | - * @since v0.1.1 |
|
17 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - Interface definition: [NelsonMartell\Collections] IList |
|
7 | + * |
|
8 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | + * |
|
10 | + * Licensed under The MIT License (MIT) |
|
11 | + * For full copyright and license information, please see the LICENSE |
|
12 | + * Redistributions of files must retain the above copyright notice. |
|
13 | + * |
|
14 | + * @copyright 2015-2016 Nelson Martell |
|
15 | + * @link http://nelson6e65.github.io/php_nml/ |
|
16 | + * @since v0.1.1 |
|
17 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | + * */ |
|
19 | 19 | |
20 | 20 | namespace NelsonMartell\Collections { |
21 | 21 |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - Interface definition: [NelsonMartell\Collections] ICollection |
|
7 | - * |
|
8 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | - * |
|
10 | - * Licensed under The MIT License (MIT) |
|
11 | - * For full copyright and license information, please see the LICENSE |
|
12 | - * Redistributions of files must retain the above copyright notice. |
|
13 | - * |
|
14 | - * @copyright 2015-2016 Nelson Martell |
|
15 | - * @link http://nelson6e65.github.io/php_nml/ |
|
16 | - * @since v0.1.1 |
|
17 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - Interface definition: [NelsonMartell\Collections] ICollection |
|
7 | + * |
|
8 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | + * |
|
10 | + * Licensed under The MIT License (MIT) |
|
11 | + * For full copyright and license information, please see the LICENSE |
|
12 | + * Redistributions of files must retain the above copyright notice. |
|
13 | + * |
|
14 | + * @copyright 2015-2016 Nelson Martell |
|
15 | + * @link http://nelson6e65.github.io/php_nml/ |
|
16 | + * @since v0.1.1 |
|
17 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | + * */ |
|
19 | 19 | |
20 | 20 | namespace NelsonMartell\Collections { |
21 | 21 |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - Class definition: [NelsonMartell] Version |
|
7 | - * |
|
8 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | - * |
|
10 | - * Licensed under The MIT License (MIT) |
|
11 | - * For full copyright and license information, please see the LICENSE |
|
12 | - * Redistributions of files must retain the above copyright notice. |
|
13 | - * |
|
14 | - * @copyright 2015-2016 Nelson Martell |
|
15 | - * @link http://nelson6e65.github.io/php_nml/ |
|
16 | - * @since v0.1.1 |
|
17 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - Class definition: [NelsonMartell] Version |
|
7 | + * |
|
8 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | + * |
|
10 | + * Licensed under The MIT License (MIT) |
|
11 | + * For full copyright and license information, please see the LICENSE |
|
12 | + * Redistributions of files must retain the above copyright notice. |
|
13 | + * |
|
14 | + * @copyright 2015-2016 Nelson Martell |
|
15 | + * @link http://nelson6e65.github.io/php_nml/ |
|
16 | + * @since v0.1.1 |
|
17 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | + * */ |
|
19 | 19 | |
20 | 20 | namespace NelsonMartell { |
21 | 21 |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - File to perform manual autoload. For non composer instalation, must be |
|
7 | - * required at app initialization. |
|
8 | - * |
|
9 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
10 | - * |
|
11 | - * Licensed under The MIT License (MIT) |
|
12 | - * For full copyright and license information, please see the LICENSE |
|
13 | - * Redistributions of files must retain the above copyright notice. |
|
14 | - * |
|
15 | - * @copyright 2015-2016 Nelson Martell |
|
16 | - * @link http://nelson6e65.github.io/php_nml/ |
|
17 | - * @since v0.3.0 |
|
18 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
19 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - File to perform manual autoload. For non composer instalation, must be |
|
7 | + * required at app initialization. |
|
8 | + * |
|
9 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
10 | + * |
|
11 | + * Licensed under The MIT License (MIT) |
|
12 | + * For full copyright and license information, please see the LICENSE |
|
13 | + * Redistributions of files must retain the above copyright notice. |
|
14 | + * |
|
15 | + * @copyright 2015-2016 Nelson Martell |
|
16 | + * @link http://nelson6e65.github.io/php_nml/ |
|
17 | + * @since v0.3.0 |
|
18 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
19 | + * */ |
|
20 | 20 | |
21 | 21 | require_once __DIR__.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'constants.php'; |
22 | 22 | require_once __DIR__.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'deprecated_functions.php'; |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - Trait definition: [NelsonMartell\Collections] CollectionIterator |
|
7 | - * - Class definition: [NelsonMartell\Collections] Collection |
|
8 | - * |
|
9 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
10 | - * |
|
11 | - * Licensed under The MIT License (MIT) |
|
12 | - * For full copyright and license information, please see the LICENSE |
|
13 | - * Redistributions of files must retain the above copyright notice. |
|
14 | - * |
|
15 | - * @copyright 2015-2016 Nelson Martell |
|
16 | - * @link http://nelson6e65.github.io/php_nml/ |
|
17 | - * @since v0.4.0 |
|
18 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
19 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - Trait definition: [NelsonMartell\Collections] CollectionIterator |
|
7 | + * - Class definition: [NelsonMartell\Collections] Collection |
|
8 | + * |
|
9 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
10 | + * |
|
11 | + * Licensed under The MIT License (MIT) |
|
12 | + * For full copyright and license information, please see the LICENSE |
|
13 | + * Redistributions of files must retain the above copyright notice. |
|
14 | + * |
|
15 | + * @copyright 2015-2016 Nelson Martell |
|
16 | + * @link http://nelson6e65.github.io/php_nml/ |
|
17 | + * @since v0.4.0 |
|
18 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
19 | + * */ |
|
20 | 20 | |
21 | 21 | namespace NelsonMartell\Collections { |
22 | 22 |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * PHP: Nelson Martell Library file |
|
4 | - * |
|
5 | - * Content: |
|
6 | - * - Global constants definitions. |
|
7 | - * |
|
8 | - * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | - * |
|
10 | - * Licensed under The MIT License (MIT) |
|
11 | - * For full copyright and license information, please see the LICENSE |
|
12 | - * Redistributions of files must retain the above copyright notice. |
|
13 | - * |
|
14 | - * @copyright 2015-2016 Nelson Martell |
|
15 | - * @link http://nelson6e65.github.io/php_nml/ |
|
16 | - * @since v0.5.0 |
|
17 | - * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | - * */ |
|
3 | + * PHP: Nelson Martell Library file |
|
4 | + * |
|
5 | + * Content: |
|
6 | + * - Global constants definitions. |
|
7 | + * |
|
8 | + * Copyright © 2015-2016 Nelson Martell (http://nelson6e65.github.io) |
|
9 | + * |
|
10 | + * Licensed under The MIT License (MIT) |
|
11 | + * For full copyright and license information, please see the LICENSE |
|
12 | + * Redistributions of files must retain the above copyright notice. |
|
13 | + * |
|
14 | + * @copyright 2015-2016 Nelson Martell |
|
15 | + * @link http://nelson6e65.github.io/php_nml/ |
|
16 | + * @since v0.5.0 |
|
17 | + * @license http://www.opensource.org/licenses/mit-license.php The MIT License (MIT) |
|
18 | + * */ |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * Gettext domain for NML messages. |
@@ -177,6 +177,9 @@ discard block |
||
177 | 177 | return $this->methods; |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param string $name |
|
182 | + */ |
|
180 | 183 | public function hasMethod($name) |
181 | 184 | { |
182 | 185 | if ($this->reflectionObject !== null) { |
@@ -189,7 +192,6 @@ discard block |
||
189 | 192 | /** |
190 | 193 | * Determines if instances of this Type can be converted to string. |
191 | 194 | * |
192 | - * @param mixed $obj Object. |
|
193 | 195 | * |
194 | 196 | * @return bool |
195 | 197 | */ |