1 | <?php |
||
17 | final class PrioritizedList implements \IteratorAggregate |
||
18 | { |
||
19 | private $list = []; |
||
20 | |||
21 | private $optimized; |
||
22 | |||
23 | /** |
||
24 | * @param mixed $item |
||
25 | * @param int $priority |
||
26 | */ |
||
27 | 1989 | public function add($item, $priority) |
|
32 | |||
33 | /** |
||
34 | * @return \Traversable |
||
35 | */ |
||
36 | 2007 | public function getIterator() |
|
53 | } |
||
54 |