| 1 | <?php |
||
| 8 | class Reload_Data_Task implements Task { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @inheritDoc |
||
| 12 | */ |
||
| 13 | function get_id() { |
||
| 17 | |||
| 18 | function get_label() { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritDoc |
||
| 25 | */ |
||
| 26 | function list_items( $limit = 10, $offset = 0 ) { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | function count_items() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | function process_item( $item ) { |
||
| 47 | |||
| 48 | } |
||
| 49 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.