Page MenuHomeDevCentral

Action.php
No OneTemporary

Action.php

<?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

Mime Type
text/x-php
Expires
Fri, Feb 28, 21:45 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2438573
Default Alt Text
Action.php (645 B)

Event Timeline