1 | <?php |
||
21 | class WorkerCollection |
||
22 | { |
||
23 | /** |
||
24 | * All Workers |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | private $workerClasses = array(); |
||
29 | |||
30 | /** |
||
31 | * Adds a Worker into $workerClasses |
||
32 | * Return self object |
||
33 | * |
||
34 | * @param Worker $workerClass Worker element to add |
||
35 | * |
||
36 | * @return WorkerCollection |
||
37 | */ |
||
38 | public function add(Worker $workerClass) |
||
44 | |||
45 | /** |
||
46 | * Retrieve all workers loaded previously in cache format |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | 1 | public function toArray() |
|
60 | } |
||
|
|||
61 |
This check marks files that end in a newline character, i.e. an empy line.