← All changes
|
vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_NullAction.php
+12
-3
1.0.2
→
trunk
View file →
| @@ -4,13 +4,22 @@ | ||
| 4 | 4 | * Class ActionScheduler_NullAction |
| 5 | 5 | */ |
| 6 | 6 | class ActionScheduler_NullAction extends ActionScheduler_Action { |
| 7 | 7 | |
| 8 | - public function __construct( $hook = '', array $args = array(), ActionScheduler_Schedule $schedule = NULL ) { | |
| 8 | + /** | |
| 9 | + * Construct. | |
| 10 | + * | |
| 11 | + * @param string $hook Action hook. | |
| 12 | + * @param mixed[] $args Action arguments. | |
| 13 | + * @param null|ActionScheduler_Schedule $schedule Action schedule. | |
| 14 | + */ | |
| 15 | + public function __construct( $hook = '', array $args = array(), ?ActionScheduler_Schedule $schedule = null ) { | |
| 9 | 16 | $this->set_schedule( new ActionScheduler_NullSchedule() ); |
| 10 | 17 | } |
| 11 | 18 | |
| 19 | + /** | |
| 20 | + * Execute action. | |
| 21 | + */ | |
| 12 | 22 | public function execute() { |
| 13 | - // don't execute | |
| 23 | + // don't execute. | |
| 14 | 24 | } |
| 15 | 25 | } |
| 16 | - | |