| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | abstract class Alert_Trigger { |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * Hold the Plugin class | |
| 18 | + * Holds instance of plugin object | |
| 19 | 19 | * |
| 20 | 20 | * @var Plugin |
| 21 | 21 | */ |
| 22 | 22 | public $plugin; |
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Class constructor |
| 33 | 33 | * |
| 34 | - * @param Plugin $plugin Plugin class. | |
| 34 | + * @param Plugin $plugin Instance of plugin object. | |
| 35 | 35 | */ |
| 36 | 36 | public function __construct( $plugin ) { |
| 37 | 37 | $this->plugin = $plugin; |
| 38 | 38 | |
| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | * @param array $recordarr Record data. |
| 52 | 52 | * @param Alert $alert The Alert being worked on. |
| 53 | 53 | * @return bool False on failure, otherwise should return original value of $success. |
| 54 | 54 | */ |
| 55 | - abstract public function check_record ( $success, $record_id, $recordarr, $alert ); | |
| 55 | + abstract public function check_record( $success, $record_id, $recordarr, $alert ); | |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * Adds fields to the trigger form. |
| 59 | 59 | * |
| @@ -77,13 +77,13 @@ | ||
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * Returns the trigger's value for the given alert. |
| 80 | 80 | * |
| 81 | - * @param string $context The location this data will be displayed in. | |
| 82 | - * @param Alert $alert Alert being processed. | |
| 81 | + * @param string $context The location this data will be displayed in. | |
| 82 | + * @param Alert|null $alert Alert being processed. | |
| 83 | 83 | * @return string |
| 84 | 84 | */ |
| 85 | - abstract public function get_display_value( $context = 'normal', $alert ); | |
| 85 | + abstract public function get_display_value( $context = 'normal', $alert = null ); | |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Allow connectors to determine if their dependencies is satisfied or not |
| 89 | 89 | * |