Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F881875
BaseEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
473 B
Subscribers
None
BaseEvent.php
View Options
<?php
namespace
Zed\Engines\Perso\Events
;
use
Zed\Engines\Perso\PersoSelector
;
abstract
class
BaseEvent
{
protected
PersoSelector
$selector
;
public
function
__construct
(
PersoSelector
$selector
)
{
$this
->
selector
=
$selector
;
}
public
function
run
()
:
void
{
if
(
$this
->
isTriggered
())
{
$this
->
handle
();
}
}
abstract
public
function
isTriggered
()
:
bool
;
abstract
public
function
handle
()
:
void
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Apr 2, 13:34 (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24602
Default Alt Text
BaseEvent.php (473 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment