source: trunk/client/inc/hpdf5/spipu/html2pdf/src/Extension/AbstractExtension.php@ 398

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

Aggiornamento per compatibilità con php7.4

File size: 817 bytes
Line 
1<?php
2/**
3 * Html2Pdf Library
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 */
12namespace Spipu\Html2Pdf\Extension;
13
14use Spipu\Html2Pdf\Tag\TagInterface;
15
16/**
17 * Class AbstractExtension
18 */
19abstract class AbstractExtension implements ExtensionInterface
20{
21 /**
22 * @var array
23 */
24 protected $tagDefinitions = array();
25
26 /**
27 * {@inheritDoc}
28 */
29 public function getTags()
30 {
31 if (empty($this->tagDefinitions)) {
32 $this->tagDefinitions = $this->initTags();
33 }
34
35 return $this->tagDefinitions;
36 }
37
38 /**
39 * Init the tags
40 *
41 * @return TagInterface[]
42 */
43 abstract protected function initTags();
44}
Note: See TracBrowser for help on using the repository browser.