1 | <?php |
||
29 | class tx_crawler_domain_process_collection extends ArrayObject |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Method to retrieve an element from the collection. |
||
34 | * |
||
35 | * @throws Exception |
||
36 | * @return tx_crawler_domain_process |
||
37 | */ |
||
38 | public function offsetGet($index) |
||
39 | { |
||
40 | if (! parent::offsetExists($index)) { |
||
41 | throw new Exception('Index "' . var_export($index, true) . '" for tx_crawler_domain_process are not available'); |
||
42 | } |
||
43 | return parent::offsetGet($index); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Method to add an element to the collection- |
||
48 | * |
||
49 | * @param mixed $index |
||
50 | * @param tx_crawler_domain_process $subject |
||
51 | * @throws InvalidArgumentException |
||
52 | * @return void |
||
53 | */ |
||
54 | public function offsetSet($index, $subject) |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Method to append an element to the collection |
||
64 | * @param tx_crawler_domain_process $subject |
||
65 | * @throws InvalidArgumentException |
||
66 | * @return void |
||
67 | */ |
||
68 | public function append($subject) |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * returns array of process ids of the current collection |
||
78 | * @return array |
||
79 | */ |
||
80 | 1 | public function getProcessIds() |
|
87 | } |
||
88 | } |
||
89 | |||
93 |