public function __construct($kind, $source, $name, array $t_args = null, $alias = null) { parent::__construct($kind); $this->name = $name; $this->t_args = is_null($t_args) ? [] : $t_args; $this->alias = $alias; $this->source = $source; }
public function __construct($kind, $hash, $name, $value, array $args, array $targs) { parent::__construct($kind); $this->name = $name; $this->value = $value; $this->hash = $hash; $this->targs = $targs; if (array_key_exists('properties', $args)) { $this->properties = $args['properties']; } $this->extras = get_first_key_default($args, ['extra', 'extras'], []); if (array_key_exists('libraries', $args)) { $this->libraries = $args['libraries']; } }