⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
vendor
/
spatie
/
url
/
src
/
View File Name :
Scheme.php
<?php namespace Spatie\Url; use Spatie\Macroable\Macroable; use Stringable; class Scheme implements Stringable { use Macroable; protected string $scheme; protected SchemeValidator $validator; public function __construct( string $scheme = '', array|null $allowedSchemes = null, ) { $this->validator = new SchemeValidator($allowedSchemes); $this->setScheme($scheme); } protected function validate(string $scheme): void { $this->validator->setScheme($scheme); $this->validator->validate(); } public function getScheme(): string { return $this->scheme; } public function setScheme(string $scheme): void { $sanitizedScheme = $this->validator::sanitizeScheme($scheme); $this->validate($sanitizedScheme); $this->scheme = $sanitizedScheme; } public function getAllowedSchemes(): array { return $this->validator->getAllowedSchemes(); } public function setAllowedSchemes(array $allowedSchemes): void { $this->validator->setAllowedSchemes($allowedSchemes); } public function __toString(): string { return $this->getScheme(); } public function __clone() { $this->validator = clone $this->validator; } }