@@ -7,25 +7,25 @@ |
||
| 7 | 7 | |
| 8 | 8 | class Match_ extends Node\Expr |
| 9 | 9 | { |
| 10 | - /** @var Node\Expr */ |
|
| 11 | - public $cond; |
|
| 12 | - /** @var MatchArm[] */ |
|
| 13 | - public $arms; |
|
| 10 | + /** @var Node\Expr */ |
|
| 11 | + public $cond; |
|
| 12 | + /** @var MatchArm[] */ |
|
| 13 | + public $arms; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * @param MatchArm[] $arms |
|
| 17 | - */ |
|
| 18 | - public function __construct(Node\Expr $cond, array $arms = [], array $attributes = []) { |
|
| 19 | - $this->attributes = $attributes; |
|
| 20 | - $this->cond = $cond; |
|
| 21 | - $this->arms = $arms; |
|
| 22 | - } |
|
| 15 | + /** |
|
| 16 | + * @param MatchArm[] $arms |
|
| 17 | + */ |
|
| 18 | + public function __construct(Node\Expr $cond, array $arms = [], array $attributes = []) { |
|
| 19 | + $this->attributes = $attributes; |
|
| 20 | + $this->cond = $cond; |
|
| 21 | + $this->arms = $arms; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - public function getSubNodeNames() : array { |
|
| 25 | - return ['cond', 'arms']; |
|
| 26 | - } |
|
| 24 | + public function getSubNodeNames() : array { |
|
| 25 | + return ['cond', 'arms']; |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - public function getType() : string { |
|
| 29 | - return 'Expr_Match'; |
|
| 30 | - } |
|
| 28 | + public function getType() : string { |
|
| 29 | + return 'Expr_Match'; |
|
| 30 | + } |
|
| 31 | 31 | } |
@@ -6,36 +6,36 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ArrayItem extends Expr |
| 8 | 8 | { |
| 9 | - /** @var null|Expr Key */ |
|
| 10 | - public $key; |
|
| 11 | - /** @var Expr Value */ |
|
| 12 | - public $value; |
|
| 13 | - /** @var bool Whether to assign by reference */ |
|
| 14 | - public $byRef; |
|
| 15 | - /** @var bool Whether to unpack the argument */ |
|
| 16 | - public $unpack; |
|
| 9 | + /** @var null|Expr Key */ |
|
| 10 | + public $key; |
|
| 11 | + /** @var Expr Value */ |
|
| 12 | + public $value; |
|
| 13 | + /** @var bool Whether to assign by reference */ |
|
| 14 | + public $byRef; |
|
| 15 | + /** @var bool Whether to unpack the argument */ |
|
| 16 | + public $unpack; |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Constructs an array item node. |
|
| 20 | - * |
|
| 21 | - * @param Expr $value Value |
|
| 22 | - * @param null|Expr $key Key |
|
| 23 | - * @param bool $byRef Whether to assign by reference |
|
| 24 | - * @param array $attributes Additional attributes |
|
| 25 | - */ |
|
| 26 | - public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) { |
|
| 27 | - $this->attributes = $attributes; |
|
| 28 | - $this->key = $key; |
|
| 29 | - $this->value = $value; |
|
| 30 | - $this->byRef = $byRef; |
|
| 31 | - $this->unpack = $unpack; |
|
| 32 | - } |
|
| 18 | + /** |
|
| 19 | + * Constructs an array item node. |
|
| 20 | + * |
|
| 21 | + * @param Expr $value Value |
|
| 22 | + * @param null|Expr $key Key |
|
| 23 | + * @param bool $byRef Whether to assign by reference |
|
| 24 | + * @param array $attributes Additional attributes |
|
| 25 | + */ |
|
| 26 | + public function __construct(Expr $value, ?Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false) { |
|
| 27 | + $this->attributes = $attributes; |
|
| 28 | + $this->key = $key; |
|
| 29 | + $this->value = $value; |
|
| 30 | + $this->byRef = $byRef; |
|
| 31 | + $this->unpack = $unpack; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - public function getSubNodeNames() : array { |
|
| 35 | - return ['key', 'value', 'byRef', 'unpack']; |
|
| 36 | - } |
|
| 34 | + public function getSubNodeNames() : array { |
|
| 35 | + return ['key', 'value', 'byRef', 'unpack']; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function getType() : string { |
|
| 39 | - return 'Expr_ArrayItem'; |
|
| 40 | - } |
|
| 38 | + public function getType() : string { |
|
| 39 | + return 'Expr_ArrayItem'; |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr; |
| 6 | 6 | |
| 7 | -class ArrayItem extends Expr |
|
| 8 | -{ |
|
| 7 | +class ArrayItem extends Expr { |
|
| 9 | 8 | /** @var null|Expr Key */ |
| 10 | 9 | public $key; |
| 11 | 10 | /** @var Expr Value */ |
@@ -6,29 +6,29 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Yield_ extends Expr |
| 8 | 8 | { |
| 9 | - /** @var null|Expr Key expression */ |
|
| 10 | - public $key; |
|
| 11 | - /** @var null|Expr Value expression */ |
|
| 12 | - public $value; |
|
| 9 | + /** @var null|Expr Key expression */ |
|
| 10 | + public $key; |
|
| 11 | + /** @var null|Expr Value expression */ |
|
| 12 | + public $value; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * Constructs a yield expression node. |
|
| 16 | - * |
|
| 17 | - * @param null|Expr $value Value expression |
|
| 18 | - * @param null|Expr $key Key expression |
|
| 19 | - * @param array $attributes Additional attributes |
|
| 20 | - */ |
|
| 21 | - public function __construct(?Expr $value = null, ?Expr $key = null, array $attributes = []) { |
|
| 22 | - $this->attributes = $attributes; |
|
| 23 | - $this->key = $key; |
|
| 24 | - $this->value = $value; |
|
| 25 | - } |
|
| 14 | + /** |
|
| 15 | + * Constructs a yield expression node. |
|
| 16 | + * |
|
| 17 | + * @param null|Expr $value Value expression |
|
| 18 | + * @param null|Expr $key Key expression |
|
| 19 | + * @param array $attributes Additional attributes |
|
| 20 | + */ |
|
| 21 | + public function __construct(?Expr $value = null, ?Expr $key = null, array $attributes = []) { |
|
| 22 | + $this->attributes = $attributes; |
|
| 23 | + $this->key = $key; |
|
| 24 | + $this->value = $value; |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - public function getSubNodeNames() : array { |
|
| 28 | - return ['key', 'value']; |
|
| 29 | - } |
|
| 27 | + public function getSubNodeNames() : array { |
|
| 28 | + return ['key', 'value']; |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - public function getType() : string { |
|
| 32 | - return 'Expr_Yield'; |
|
| 33 | - } |
|
| 31 | + public function getType() : string { |
|
| 32 | + return 'Expr_Yield'; |
|
| 33 | + } |
|
| 34 | 34 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr; |
| 6 | 6 | |
| 7 | -class Yield_ extends Expr |
|
| 8 | -{ |
|
| 7 | +class Yield_ extends Expr { |
|
| 9 | 8 | /** @var null|Expr Key expression */ |
| 10 | 9 | public $key; |
| 11 | 10 | /** @var null|Expr Value expression */ |
@@ -8,29 +8,29 @@ |
||
| 8 | 8 | |
| 9 | 9 | class StaticPropertyFetch extends Expr |
| 10 | 10 | { |
| 11 | - /** @var Name|Expr Class name */ |
|
| 12 | - public $class; |
|
| 13 | - /** @var VarLikeIdentifier|Expr Property name */ |
|
| 14 | - public $name; |
|
| 11 | + /** @var Name|Expr Class name */ |
|
| 12 | + public $class; |
|
| 13 | + /** @var VarLikeIdentifier|Expr Property name */ |
|
| 14 | + public $name; |
|
| 15 | 15 | |
| 16 | - /** |
|
| 17 | - * Constructs a static property fetch node. |
|
| 18 | - * |
|
| 19 | - * @param Name|Expr $class Class name |
|
| 20 | - * @param string|VarLikeIdentifier|Expr $name Property name |
|
| 21 | - * @param array $attributes Additional attributes |
|
| 22 | - */ |
|
| 23 | - public function __construct($class, $name, array $attributes = []) { |
|
| 24 | - $this->attributes = $attributes; |
|
| 25 | - $this->class = $class; |
|
| 26 | - $this->name = \is_string($name) ? new VarLikeIdentifier($name) : $name; |
|
| 27 | - } |
|
| 16 | + /** |
|
| 17 | + * Constructs a static property fetch node. |
|
| 18 | + * |
|
| 19 | + * @param Name|Expr $class Class name |
|
| 20 | + * @param string|VarLikeIdentifier|Expr $name Property name |
|
| 21 | + * @param array $attributes Additional attributes |
|
| 22 | + */ |
|
| 23 | + public function __construct($class, $name, array $attributes = []) { |
|
| 24 | + $this->attributes = $attributes; |
|
| 25 | + $this->class = $class; |
|
| 26 | + $this->name = \is_string($name) ? new VarLikeIdentifier($name) : $name; |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | - public function getSubNodeNames() : array { |
|
| 30 | - return ['class', 'name']; |
|
| 31 | - } |
|
| 29 | + public function getSubNodeNames() : array { |
|
| 30 | + return ['class', 'name']; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - public function getType() : string { |
|
| 34 | - return 'Expr_StaticPropertyFetch'; |
|
| 35 | - } |
|
| 33 | + public function getType() : string { |
|
| 34 | + return 'Expr_StaticPropertyFetch'; |
|
| 35 | + } |
|
| 36 | 36 | } |
@@ -6,8 +6,7 @@ |
||
| 6 | 6 | use PhpParser\Node\Name; |
| 7 | 7 | use PhpParser\Node\VarLikeIdentifier; |
| 8 | 8 | |
| 9 | -class StaticPropertyFetch extends Expr |
|
| 10 | -{ |
|
| 9 | +class StaticPropertyFetch extends Expr { |
|
| 11 | 10 | /** @var Name|Expr Class name */ |
| 12 | 11 | public $class; |
| 13 | 12 | /** @var VarLikeIdentifier|Expr Property name */ |
@@ -8,72 +8,72 @@ |
||
| 8 | 8 | |
| 9 | 9 | class Closure extends Expr implements FunctionLike |
| 10 | 10 | { |
| 11 | - /** @var bool Whether the closure is static */ |
|
| 12 | - public $static; |
|
| 13 | - /** @var bool Whether to return by reference */ |
|
| 14 | - public $byRef; |
|
| 15 | - /** @var Node\Param[] Parameters */ |
|
| 16 | - public $params; |
|
| 17 | - /** @var ClosureUse[] use()s */ |
|
| 18 | - public $uses; |
|
| 19 | - /** @var null|Node\Identifier|Node\Name|Node\ComplexType Return type */ |
|
| 20 | - public $returnType; |
|
| 21 | - /** @var Node\Stmt[] Statements */ |
|
| 22 | - public $stmts; |
|
| 23 | - /** @var Node\AttributeGroup[] PHP attribute groups */ |
|
| 24 | - public $attrGroups; |
|
| 11 | + /** @var bool Whether the closure is static */ |
|
| 12 | + public $static; |
|
| 13 | + /** @var bool Whether to return by reference */ |
|
| 14 | + public $byRef; |
|
| 15 | + /** @var Node\Param[] Parameters */ |
|
| 16 | + public $params; |
|
| 17 | + /** @var ClosureUse[] use()s */ |
|
| 18 | + public $uses; |
|
| 19 | + /** @var null|Node\Identifier|Node\Name|Node\ComplexType Return type */ |
|
| 20 | + public $returnType; |
|
| 21 | + /** @var Node\Stmt[] Statements */ |
|
| 22 | + public $stmts; |
|
| 23 | + /** @var Node\AttributeGroup[] PHP attribute groups */ |
|
| 24 | + public $attrGroups; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Constructs a lambda function node. |
|
| 28 | - * |
|
| 29 | - * @param array $subNodes Array of the following optional subnodes: |
|
| 30 | - * 'static' => false : Whether the closure is static |
|
| 31 | - * 'byRef' => false : Whether to return by reference |
|
| 32 | - * 'params' => array(): Parameters |
|
| 33 | - * 'uses' => array(): use()s |
|
| 34 | - * 'returnType' => null : Return type |
|
| 35 | - * 'stmts' => array(): Statements |
|
| 36 | - * 'attrGroups' => array(): PHP attributes groups |
|
| 37 | - * @param array $attributes Additional attributes |
|
| 38 | - */ |
|
| 39 | - public function __construct(array $subNodes = [], array $attributes = []) { |
|
| 40 | - $this->attributes = $attributes; |
|
| 41 | - $this->static = $subNodes['static'] ?? false; |
|
| 42 | - $this->byRef = $subNodes['byRef'] ?? false; |
|
| 43 | - $this->params = $subNodes['params'] ?? []; |
|
| 44 | - $this->uses = $subNodes['uses'] ?? []; |
|
| 45 | - $returnType = $subNodes['returnType'] ?? null; |
|
| 46 | - $this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType; |
|
| 47 | - $this->stmts = $subNodes['stmts'] ?? []; |
|
| 48 | - $this->attrGroups = $subNodes['attrGroups'] ?? []; |
|
| 49 | - } |
|
| 26 | + /** |
|
| 27 | + * Constructs a lambda function node. |
|
| 28 | + * |
|
| 29 | + * @param array $subNodes Array of the following optional subnodes: |
|
| 30 | + * 'static' => false : Whether the closure is static |
|
| 31 | + * 'byRef' => false : Whether to return by reference |
|
| 32 | + * 'params' => array(): Parameters |
|
| 33 | + * 'uses' => array(): use()s |
|
| 34 | + * 'returnType' => null : Return type |
|
| 35 | + * 'stmts' => array(): Statements |
|
| 36 | + * 'attrGroups' => array(): PHP attributes groups |
|
| 37 | + * @param array $attributes Additional attributes |
|
| 38 | + */ |
|
| 39 | + public function __construct(array $subNodes = [], array $attributes = []) { |
|
| 40 | + $this->attributes = $attributes; |
|
| 41 | + $this->static = $subNodes['static'] ?? false; |
|
| 42 | + $this->byRef = $subNodes['byRef'] ?? false; |
|
| 43 | + $this->params = $subNodes['params'] ?? []; |
|
| 44 | + $this->uses = $subNodes['uses'] ?? []; |
|
| 45 | + $returnType = $subNodes['returnType'] ?? null; |
|
| 46 | + $this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType; |
|
| 47 | + $this->stmts = $subNodes['stmts'] ?? []; |
|
| 48 | + $this->attrGroups = $subNodes['attrGroups'] ?? []; |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | - public function getSubNodeNames() : array { |
|
| 52 | - return ['attrGroups', 'static', 'byRef', 'params', 'uses', 'returnType', 'stmts']; |
|
| 53 | - } |
|
| 51 | + public function getSubNodeNames() : array { |
|
| 52 | + return ['attrGroups', 'static', 'byRef', 'params', 'uses', 'returnType', 'stmts']; |
|
| 53 | + } |
|
| 54 | 54 | |
| 55 | - public function returnsByRef() : bool { |
|
| 56 | - return $this->byRef; |
|
| 57 | - } |
|
| 55 | + public function returnsByRef() : bool { |
|
| 56 | + return $this->byRef; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - public function getParams() : array { |
|
| 60 | - return $this->params; |
|
| 61 | - } |
|
| 59 | + public function getParams() : array { |
|
| 60 | + return $this->params; |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | - public function getReturnType() { |
|
| 64 | - return $this->returnType; |
|
| 65 | - } |
|
| 63 | + public function getReturnType() { |
|
| 64 | + return $this->returnType; |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - /** @return Node\Stmt[] */ |
|
| 68 | - public function getStmts() : array { |
|
| 69 | - return $this->stmts; |
|
| 70 | - } |
|
| 67 | + /** @return Node\Stmt[] */ |
|
| 68 | + public function getStmts() : array { |
|
| 69 | + return $this->stmts; |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | - public function getAttrGroups() : array { |
|
| 73 | - return $this->attrGroups; |
|
| 74 | - } |
|
| 72 | + public function getAttrGroups() : array { |
|
| 73 | + return $this->attrGroups; |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - public function getType() : string { |
|
| 77 | - return 'Expr_Closure'; |
|
| 78 | - } |
|
| 76 | + public function getType() : string { |
|
| 77 | + return 'Expr_Closure'; |
|
| 78 | + } |
|
| 79 | 79 | } |
@@ -6,8 +6,7 @@ |
||
| 6 | 6 | use PhpParser\Node\Expr; |
| 7 | 7 | use PhpParser\Node\FunctionLike; |
| 8 | 8 | |
| 9 | -class Closure extends Expr implements FunctionLike |
|
| 10 | -{ |
|
| 9 | +class Closure extends Expr implements FunctionLike { |
|
| 11 | 10 | /** @var bool Whether the closure is static */ |
| 12 | 11 | public $static; |
| 13 | 12 | /** @var bool Whether to return by reference */ |
@@ -9,37 +9,37 @@ |
||
| 9 | 9 | |
| 10 | 10 | class MethodCall extends CallLike |
| 11 | 11 | { |
| 12 | - /** @var Expr Variable holding object */ |
|
| 13 | - public $var; |
|
| 14 | - /** @var Identifier|Expr Method name */ |
|
| 15 | - public $name; |
|
| 16 | - /** @var array<Arg|VariadicPlaceholder> Arguments */ |
|
| 17 | - public $args; |
|
| 12 | + /** @var Expr Variable holding object */ |
|
| 13 | + public $var; |
|
| 14 | + /** @var Identifier|Expr Method name */ |
|
| 15 | + public $name; |
|
| 16 | + /** @var array<Arg|VariadicPlaceholder> Arguments */ |
|
| 17 | + public $args; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * Constructs a function call node. |
|
| 21 | - * |
|
| 22 | - * @param Expr $var Variable holding object |
|
| 23 | - * @param string|Identifier|Expr $name Method name |
|
| 24 | - * @param array<Arg|VariadicPlaceholder> $args Arguments |
|
| 25 | - * @param array $attributes Additional attributes |
|
| 26 | - */ |
|
| 27 | - public function __construct(Expr $var, $name, array $args = [], array $attributes = []) { |
|
| 28 | - $this->attributes = $attributes; |
|
| 29 | - $this->var = $var; |
|
| 30 | - $this->name = \is_string($name) ? new Identifier($name) : $name; |
|
| 31 | - $this->args = $args; |
|
| 32 | - } |
|
| 19 | + /** |
|
| 20 | + * Constructs a function call node. |
|
| 21 | + * |
|
| 22 | + * @param Expr $var Variable holding object |
|
| 23 | + * @param string|Identifier|Expr $name Method name |
|
| 24 | + * @param array<Arg|VariadicPlaceholder> $args Arguments |
|
| 25 | + * @param array $attributes Additional attributes |
|
| 26 | + */ |
|
| 27 | + public function __construct(Expr $var, $name, array $args = [], array $attributes = []) { |
|
| 28 | + $this->attributes = $attributes; |
|
| 29 | + $this->var = $var; |
|
| 30 | + $this->name = \is_string($name) ? new Identifier($name) : $name; |
|
| 31 | + $this->args = $args; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - public function getSubNodeNames() : array { |
|
| 35 | - return ['var', 'name', 'args']; |
|
| 36 | - } |
|
| 34 | + public function getSubNodeNames() : array { |
|
| 35 | + return ['var', 'name', 'args']; |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - public function getType() : string { |
|
| 39 | - return 'Expr_MethodCall'; |
|
| 40 | - } |
|
| 38 | + public function getType() : string { |
|
| 39 | + return 'Expr_MethodCall'; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - public function getRawArgs(): array { |
|
| 43 | - return $this->args; |
|
| 44 | - } |
|
| 42 | + public function getRawArgs(): array { |
|
| 43 | + return $this->args; |
|
| 44 | + } |
|
| 45 | 45 | } |
@@ -7,8 +7,7 @@ |
||
| 7 | 7 | use PhpParser\Node\Identifier; |
| 8 | 8 | use PhpParser\Node\VariadicPlaceholder; |
| 9 | 9 | |
| 10 | -class MethodCall extends CallLike |
|
| 11 | -{ |
|
| 10 | +class MethodCall extends CallLike { |
|
| 12 | 11 | /** @var Expr Variable holding object */ |
| 13 | 12 | public $var; |
| 14 | 13 | /** @var Identifier|Expr Method name */ |
@@ -6,25 +6,25 @@ |
||
| 6 | 6 | |
| 7 | 7 | class UnaryMinus extends Expr |
| 8 | 8 | { |
| 9 | - /** @var Expr Expression */ |
|
| 10 | - public $expr; |
|
| 9 | + /** @var Expr Expression */ |
|
| 10 | + public $expr; |
|
| 11 | 11 | |
| 12 | - /** |
|
| 13 | - * Constructs a unary minus node. |
|
| 14 | - * |
|
| 15 | - * @param Expr $expr Expression |
|
| 16 | - * @param array $attributes Additional attributes |
|
| 17 | - */ |
|
| 18 | - public function __construct(Expr $expr, array $attributes = []) { |
|
| 19 | - $this->attributes = $attributes; |
|
| 20 | - $this->expr = $expr; |
|
| 21 | - } |
|
| 12 | + /** |
|
| 13 | + * Constructs a unary minus node. |
|
| 14 | + * |
|
| 15 | + * @param Expr $expr Expression |
|
| 16 | + * @param array $attributes Additional attributes |
|
| 17 | + */ |
|
| 18 | + public function __construct(Expr $expr, array $attributes = []) { |
|
| 19 | + $this->attributes = $attributes; |
|
| 20 | + $this->expr = $expr; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function getSubNodeNames() : array { |
|
| 24 | - return ['expr']; |
|
| 25 | - } |
|
| 23 | + public function getSubNodeNames() : array { |
|
| 24 | + return ['expr']; |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - public function getType() : string { |
|
| 28 | - return 'Expr_UnaryMinus'; |
|
| 29 | - } |
|
| 27 | + public function getType() : string { |
|
| 28 | + return 'Expr_UnaryMinus'; |
|
| 29 | + } |
|
| 30 | 30 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr; |
| 6 | 6 | |
| 7 | -class UnaryMinus extends Expr |
|
| 8 | -{ |
|
| 7 | +class UnaryMinus extends Expr { |
|
| 9 | 8 | /** @var Expr Expression */ |
| 10 | 9 | public $expr; |
| 11 | 10 | |
@@ -6,11 +6,11 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Smaller extends BinaryOp |
| 8 | 8 | { |
| 9 | - public function getOperatorSigil() : string { |
|
| 10 | - return '<'; |
|
| 11 | - } |
|
| 9 | + public function getOperatorSigil() : string { |
|
| 10 | + return '<'; |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - public function getType() : string { |
|
| 14 | - return 'Expr_BinaryOp_Smaller'; |
|
| 15 | - } |
|
| 13 | + public function getType() : string { |
|
| 14 | + return 'Expr_BinaryOp_Smaller'; |
|
| 15 | + } |
|
| 16 | 16 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\BinaryOp; |
| 6 | 6 | |
| 7 | -class Smaller extends BinaryOp |
|
| 8 | -{ |
|
| 7 | +class Smaller extends BinaryOp { |
|
| 9 | 8 | public function getOperatorSigil() : string { |
| 10 | 9 | return '<'; |
| 11 | 10 | } |
@@ -6,11 +6,11 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Concat extends BinaryOp |
| 8 | 8 | { |
| 9 | - public function getOperatorSigil() : string { |
|
| 10 | - return '.'; |
|
| 11 | - } |
|
| 9 | + public function getOperatorSigil() : string { |
|
| 10 | + return '.'; |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - public function getType() : string { |
|
| 14 | - return 'Expr_BinaryOp_Concat'; |
|
| 15 | - } |
|
| 13 | + public function getType() : string { |
|
| 14 | + return 'Expr_BinaryOp_Concat'; |
|
| 15 | + } |
|
| 16 | 16 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\BinaryOp; |
| 6 | 6 | |
| 7 | -class Concat extends BinaryOp |
|
| 8 | -{ |
|
| 7 | +class Concat extends BinaryOp { |
|
| 9 | 8 | public function getOperatorSigil() : string { |
| 10 | 9 | return '.'; |
| 11 | 10 | } |