mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-24 16:17:32 +02:00
* add some basic tests for UrlHelper::rewrite_relative() * fix UrlHelper::rewrite_relative() to work better on non-absolute relative URL paths
31 lines
640 B
PHP
31 lines
640 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Node\Expr;
|
|
|
|
use PhpParser\Node\Expr;
|
|
|
|
class Variable extends Expr
|
|
{
|
|
/** @var string|Expr Name */
|
|
public $name;
|
|
|
|
/**
|
|
* Constructs a variable node.
|
|
*
|
|
* @param string|Expr $name Name
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct($name, array $attributes = []) {
|
|
$this->attributes = $attributes;
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getSubNodeNames() : array {
|
|
return ['name'];
|
|
}
|
|
|
|
public function getType() : string {
|
|
return 'Expr_Variable';
|
|
}
|
|
}
|