whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
rize
/
uri-template
/
src
/
Rize
/
UriTemplate
/
Node
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/rize/uri-template/src/Rize/UriTemplate/Node/Variable.php
<?php namespace Rize\UriTemplate\Node; class Variable extends Abstraction { /** * Variable name without modifier * e.g. 'term:1' becomes 'term'. */ public string $name; public array $options = ['modifier' => null, 'value' => null]; public function __construct(string $token, array $options = []) { parent::__construct($token); $this->options = $options + $this->options; // normalize var name e.g. from 'term:1' becomes 'term' $name = $token; if ($options['modifier'] === ':') { $name = strstr($name, $options['modifier'], true); } $this->name = $name; } }
Copyright ©2021 || Defacer Indonesia