-<?php
+<?php declare(strict_types=1);
namespace PhpParser\Node;
* @param bool $unpack Whether to unpack the argument
* @param array $attributes Additional attributes
*/
- public function __construct(Expr $value, $byRef = false, $unpack = false, array $attributes = array()) {
+ public function __construct(Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = []) {
parent::__construct($attributes);
$this->value = $value;
$this->byRef = $byRef;
$this->unpack = $unpack;
}
- public function getSubNodeNames() {
- return array('value', 'byRef', 'unpack');
+ public function getSubNodeNames() : array {
+ return ['value', 'byRef', 'unpack'];
+ }
+
+ public function getType() : string {
+ return 'Arg';
}
}