Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
firepot
/
wp-content-20250114123711
/
plugins
/
one-click-demo-import
/
vendor
/
theseer
/
tokenizer
/
src
:
NamespaceUri.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare(strict_types = 1); namespace TheSeer\Tokenizer; class NamespaceUri { /** @var string */ private $value; public function __construct(string $value) { $this->ensureValidUri($value); $this->value = $value; } public function asString(): string { return $this->value; } private function ensureValidUri($value): void { if (\strpos($value, ':') === false) { throw new NamespaceUriException( \sprintf("Namespace URI '%s' must contain at least one colon", $value) ); } } }