Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12420504
Action.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
797 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 error to the action to report
*
* To attach an exception, you can use:
* <code>
* $actionToReport->attachError(new ActionError($exception));
* </code>
*
* @param Nasqueron\Notifications\Actions\ActionError $error The error to attach
*/
public
function
attachError
(
ActionError
$error
)
{
$this
->
error
=
$error
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 6, 11:17 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3127952
Default Alt Text
Action.php (797 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment