Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281846
PhutilEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
650 B
Referenced Files
None
Subscribers
None
PhutilEvent.php
View Options
<?php
/**
* @concrete-extensible
*/
class
PhutilEvent
extends
Phobject
{
private
$type
;
private
$data
;
private
$stop
=
false
;
public
function
__construct
(
$type
,
array
$data
=
array
(
)
)
{
$this
->
type
=
$type
;
$this
->
data
=
$data
;
}
public
function
getType
(
)
{
return
$this
->
type
;
}
public
function
getValue
(
$key
,
$default
=
null
)
{
return
idx
(
$this
->
data
,
$key
,
$default
)
;
}
public
function
setValue
(
$key
,
$value
)
{
$this
->
data
[
$key
]
=
$value
;
return
$this
;
}
public
function
stop
(
)
{
$this
->
stop
=
true
;
return
$this
;
}
public
function
isStopped
(
)
{
return
$this
->
stop
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Mar 24, 01:57 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115377
Default Alt Text
PhutilEvent.php (650 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment