Blame view
dompdf/src/Frame/FrameTreeList.php
556 Bytes
|
670b6d6f8
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<?php
namespace Dompdf\Frame;
use IteratorAggregate;
use Dompdf\Frame;
/**
* Pre-order IteratorAggregate
*
* @access private
* @package dompdf
*/
class FrameTreeList implements IteratorAggregate
{
/**
* @var \Dompdf\Frame
*/
protected $_root;
/**
* @param \Dompdf\Frame $root
*/
public function __construct(Frame $root)
{
$this->_root = $root;
}
/**
* @return FrameTreeIterator
*/
public function getIterator()
{
return new FrameTreeIterator($this->_root);
}
}
|