source: trunk/client/inc/hpdf5/spipu/html2pdf/src/Tag/AbstractTag.php@ 347

Last change on this file since 347 was 347, checked in by roby, 3 years ago

Aggiornamento per compatibilità con php7.4

File size: 2.0 KB
Line 
1<?php
2/**
3 * Html2Pdf Library - Tag class
4 *
5 * HTML => PDF converter
6 * distributed under the OSL-3.0 License
7 *
8 * @package Html2pdf
9 * @author Laurent MINGUET <webmaster@html2pdf.fr>
10 * @copyright 2017 Laurent MINGUET
11 */
12
13namespace Spipu\Html2Pdf\Tag;
14
15use Spipu\Html2Pdf\CssConverter;
16use Spipu\Html2Pdf\MyPdf;
17use Spipu\Html2Pdf\Debug\DebugInterface;
18use Spipu\Html2Pdf\Parsing\Css as ParsingCss;
19
20/**
21 * Abstract Tag
22 * must be used by all the tags
23 */
24abstract class AbstractTag implements TagInterface
25{
26 /**
27 * Css Parsing object
28 * @var ParsingCss
29 */
30 protected $parsingCss;
31
32 /**
33 * Css Converter object
34 * @var CssConverter
35 */
36 protected $cssConverter;
37
38 /**
39 * Pdf object
40 * @var MyPdf
41 */
42 protected $pdf;
43
44 /**
45 * Debug object
46 * @var DebugInterface
47 */
48 protected $debug;
49
50 /**
51 * PHP constructor.
52 */
53 public function __construct()
54 {
55
56 }
57
58 /**
59 * Set the Parsing Css Object
60 *
61 * @param ParsingCss $parsingCss The parsing css object
62 *
63 * @return AbstractTag
64 */
65 public function setParsingCssObject(ParsingCss $parsingCss)
66 {
67 $this->parsingCss = $parsingCss;
68
69 return $this;
70 }
71
72 /**
73 * Set the Parsing Css Object
74 *
75 * @param CssConverter $cssConverter The css converter object
76 *
77 * @return AbstractTag
78 */
79 public function setCssConverterObject(CssConverter $cssConverter)
80 {
81 $this->cssConverter = $cssConverter;
82
83 return $this;
84 }
85
86 /**
87 * Set the Pdf Object
88 *
89 * @param MyPdf $pdf The pdf object
90 *
91 * @return TagInterface
92 */
93 public function setPdfObject(MyPdf $pdf)
94 {
95 $this->pdf = $pdf;
96
97 return $this;
98 }
99
100 /**
101 * Set the Debug Object
102 *
103 * @param DebugInterface $debug The Debug object
104 *
105 * @return TagInterface
106 */
107 public function setDebugObject(DebugInterface $debug)
108 {
109 $this->debug = $debug;
110
111 return $this;
112 }
113}
Note: See TracBrowser for help on using the repository browser.