Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
12:7a779792577d | 13:5fb285c0d0e3 |
---|---|
1 <?php | 1 <?php declare(strict_types=1); |
2 | 2 |
3 namespace PhpParser\Node\Name; | 3 namespace PhpParser\Node\Name; |
4 | 4 |
5 class Relative extends \PhpParser\Node\Name | 5 class Relative extends \PhpParser\Node\Name |
6 { | 6 { |
7 /** | 7 /** |
8 * Checks whether the name is unqualified. (E.g. Name) | 8 * Checks whether the name is unqualified. (E.g. Name) |
9 * | 9 * |
10 * @return bool Whether the name is unqualified | 10 * @return bool Whether the name is unqualified |
11 */ | 11 */ |
12 public function isUnqualified() { | 12 public function isUnqualified() : bool { |
13 return false; | 13 return false; |
14 } | 14 } |
15 | 15 |
16 /** | 16 /** |
17 * Checks whether the name is qualified. (E.g. Name\Name) | 17 * Checks whether the name is qualified. (E.g. Name\Name) |
18 * | 18 * |
19 * @return bool Whether the name is qualified | 19 * @return bool Whether the name is qualified |
20 */ | 20 */ |
21 public function isQualified() { | 21 public function isQualified() : bool { |
22 return false; | 22 return false; |
23 } | 23 } |
24 | 24 |
25 /** | 25 /** |
26 * Checks whether the name is fully qualified. (E.g. \Name) | 26 * Checks whether the name is fully qualified. (E.g. \Name) |
27 * | 27 * |
28 * @return bool Whether the name is fully qualified | 28 * @return bool Whether the name is fully qualified |
29 */ | 29 */ |
30 public function isFullyQualified() { | 30 public function isFullyQualified() : bool { |
31 return false; | 31 return false; |
32 } | 32 } |
33 | 33 |
34 /** | 34 /** |
35 * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name) | 35 * Checks whether the name is explicitly relative to the current namespace. (E.g. namespace\Name) |
36 * | 36 * |
37 * @return bool Whether the name is relative | 37 * @return bool Whether the name is relative |
38 */ | 38 */ |
39 public function isRelative() { | 39 public function isRelative() : bool { |
40 return true; | 40 return true; |
41 } | 41 } |
42 | |
43 public function toCodeString() : string { | |
44 return 'namespace\\' . $this->toString(); | |
45 } | |
46 | |
47 public function getType() : string { | |
48 return 'Name_Relative'; | |
49 } | |
42 } | 50 } |