Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12871149
Action.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
740 B
Referenced Files
None
Subscribers
None
Action.php
View Options
<?php
namespace
Nasqueron\Notifications\Actions
;
abstract
class
Action
{
/**
* @var string
*/
public
$action
;
/**
* @var 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 ActionError $error The error to attach
*/
public
function
attachError
(
ActionError
$error
)
:
void
{
$this
->
error
=
$error
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 17, 16:08 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3138942
Default Alt Text
Action.php (740 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment