PHP 8.3.31
Preview: NamespaceUri.php Size: 595 B
/home/getspomw/royalsquad.us/vendor/theseer/tokenizer/src/NamespaceUri.php

<?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)
            );
        }
    }
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
1.92 KB lrw-r--r-- 2026-04-26 08:34:01
Edit Download
102 B lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
595 B lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
113 B lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
644 B lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
2.19 KB lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
116 B lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
3.50 KB lrw-rw-rw- 2025-09-17 06:53:32
Edit Download
2.23 KB lrw-rw-rw- 2025-09-17 06:53:32
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).