Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5976844
NamespaceUri.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
595 B
Referenced Files
None
Subscribers
None
NamespaceUri.php
View Options
<?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
)
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 19:27 (2 d, 23 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ff/f9/7b5b99133f506f62fc3641caad3f
Default Alt Text
NamespaceUri.php (595 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment