Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Task
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
 execute
n/a
0 / 0
n/a
0 / 0
0
 to_array
n/a
0 / 0
n/a
0 / 0
0
1<?php
2namespace NewfoldLabs\WP\Module\Installer\Tasks;
3
4/**
5 * Skeleton for any Task. All Tasks should inherit this abstract class.
6 */
7abstract class Task {
8
9    /**
10     * Code a Task needs to run on execution.
11     *
12     * @return any
13     */
14    abstract public function execute();
15
16    /**
17     * Convert the Task object to an associative array.
18     *
19     * @return array
20     */
21    abstract public function to_array();
22}