Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5967817
UserDataTrait.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
UserDataTrait.php
View Options
<?php
namespace
Shellbox\Command
;
trait
UserDataTrait
{
/** @var array */
private
$userData
=
[];
/**
* Set some data on the object. This will not be transmitted to the server
* or otherwise used.
*
* @since 4.1.0
* @param string $name
* @param mixed $value
* @return $this
*/
public
function
userData
(
string
$name
,
$value
)
{
$this
->
userData
[
$name
]
=
$value
;
return
$this
;
}
/**
* Get data which was previously set.
*
* @since 4.1.0
* @param string $name
* @return mixed|null
*/
public
function
getUserData
(
string
$name
)
{
return
$this
->
userData
[
$name
]
??
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 12:39 (2 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9d/dc/74541a344a4a96d47b2ad34f7669
Default Alt Text
UserDataTrait.php (617 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment