| 1 | <?php |
||
| 7 | class PingJob { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | public $args; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @global array $databaseConfig |
||
| 16 | */ |
||
| 17 | public function setUp() { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return DNData |
||
| 25 | */ |
||
| 26 | public function DNData() { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Do the actual job by calling the appropiate backend |
||
| 32 | */ |
||
| 33 | public function perform() { |
||
| 42 | } |
||
| 43 |
Instead of relying on
globalstate, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state