Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F1136803
BaseEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
607 B
Subscribers
None
BaseEvent.php
View Options
<?php
namespace
Zed\Engines\Perso\Events
;
use
Keruald\Database\DatabaseEngine
;
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
;
public
function
getDatabase
()
:
DatabaseEngine
{
return
$this
->
selector
->
db
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 11, 04:59 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21431
Default Alt Text
BaseEvent.php (607 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment