Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F13143496
EnvTag.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
557 B
Referenced Files
None
Subscribers
None
EnvTag.php
View Options
<?php
namespace
Keruald\Yaml\Tags
;
use
Keruald\OmniTools\OS\Environment
;
/**
* Represents an environment variable
*/
class
EnvTag
extends
Tag
{
public
function
getPrimaryTag
()
:
string
{
return
"tag:keruald.nasqueron.org,2025:env"
;
}
public
function
getPrivateTag
()
:
string
{
return
"env"
;
}
/**
* @throws \InvalidArgumentException when the variable does not exist.
*/
public
function
handle
(
mixed
$data
)
:
string
{
$key
=
(
string
)
$data
;
return
Environment
::
get
(
$key
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 21, 16:34 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3174327
Default Alt Text
EnvTag.php (557 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment