Commit | Line | Data |
---|---|---|
7f254ad8 AE |
1 | <?php |
2 | namespace Dompdf\Frame; | |
3 | ||
4 | use IteratorAggregate; | |
5 | ||
6 | /** | |
7 | * Linked-list IteratorAggregate | |
8 | * | |
9 | * @access private | |
10 | * @package dompdf | |
11 | */ | |
12 | class FrameList implements IteratorAggregate | |
13 | { | |
14 | /** | |
15 | * @var | |
16 | */ | |
17 | protected $_frame; | |
18 | ||
19 | /** | |
20 | * @param $frame | |
21 | */ | |
22 | function __construct($frame) | |
23 | { | |
24 | $this->_frame = $frame; | |
25 | } | |
26 | ||
27 | /** | |
28 | * @return FrameListIterator | |
29 | */ | |
30 | function getIterator() | |
31 | { | |
32 | return new FrameListIterator($this->_frame); | |
33 | } | |
34 | } |