Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22421233
PhutilEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
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
Sat, Nov 28, 03:07 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1216765
Default Alt Text
PhutilEvent.php (650 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline