Total Complexity | 6 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 2 |
1 | <?php |
||
7 | class Merge extends BasePdf |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $files; |
||
13 | |||
14 | protected $watermark; |
||
15 | protected $w_x; |
||
16 | protected $w_y; |
||
17 | protected $w_width; |
||
18 | protected $w_height; |
||
19 | |||
20 | /** |
||
21 | * Merge constructor. |
||
22 | * |
||
23 | * @param array $files |
||
24 | */ |
||
25 | public function __construct(array $files) |
||
26 | { |
||
27 | parent::__construct(); |
||
28 | |||
29 | $this->files = $files; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Add watermark to each page. |
||
34 | * |
||
35 | * @param $watermark |
||
36 | * @param $x |
||
37 | * @param $y |
||
38 | * @param $width |
||
39 | * @param $height |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function addWatermark($watermark, $x = null, $y = null, $width = 0, $height = 0) |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Merge pdf files into one pdf. |
||
55 | * |
||
56 | * @return $this |
||
57 | * |
||
58 | * @throws Exceptions\UnableToOpen |
||
59 | */ |
||
60 | public function render() |
||
78 | } |
||
79 | } |
||
80 |