Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793359
Action.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
645 B
Referenced Files
None
Subscribers
None
Action.php
View Options
<?php
namespace
Nasqueron\Notifications\Actions
;
abstract
class
Action
{
/**
* @var string
*/
public
$action
;
/**
* @var Nasqueron\Notifications\Actions\ActionError
*/
public
$error
;
/**
* Initializes a new instance of an action to report
*/
public
function
__construct
()
{
$this
->
action
=
class_basename
(
get_called_class
());
}
/**
* Attaches an exception to an action to report
*
* @param \Exception $ex The exception to attach to the error report
*/
public
function
attachException
(
$ex
)
{
$this
->
error
=
new
ActionError
(
$ex
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2438573
Default Alt Text
Action.php (645 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment