← All changes
|
vendor/woocommerce/action-scheduler/classes/ActionScheduler_LogEntry.php
+9
-3
1.5.3
→
trunk
View file →
| @@ -5,18 +5,24 @@ | ||
| 5 | 5 | */ |
| 6 | 6 | class ActionScheduler_LogEntry { |
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | + * Action's ID for log entry. | |
| 10 | + * | |
| 9 | 11 | * @var int $action_id |
| 10 | 12 | */ |
| 11 | - protected $action_id = ''; | |
| 13 | + protected $action_id = ''; | |
| 12 | 14 | |
| 13 | 15 | /** |
| 16 | + * Log entry's message. | |
| 17 | + * | |
| 14 | 18 | * @var string $message |
| 15 | 19 | */ |
| 16 | - protected $message = ''; | |
| 20 | + protected $message = ''; | |
| 17 | 21 | |
| 18 | 22 | /** |
| 23 | + * Log entry's date. | |
| 24 | + * | |
| 19 | 25 | * @var Datetime $date |
| 20 | 26 | */ |
| 21 | 27 | protected $date; |
| 22 | 28 | |
| @@ -42,9 +48,9 @@ | ||
| 42 | 48 | } |
| 43 | 49 | |
| 44 | 50 | $this->action_id = $action_id; |
| 45 | 51 | $this->message = $message; |
| 46 | - $this->date = $date ? $date : new Datetime; | |
| 52 | + $this->date = $date ? $date : new Datetime(); | |
| 47 | 53 | } |
| 48 | 54 | |
| 49 | 55 | /** |
| 50 | 56 | * Returns the date when this log entry was created |