source: trunk/client/inc/hpdf5/spipu/html2pdf/src/Parsing/Token.php@ 407

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

Aggiornamento per compatibilità con php7.4

File size: 1.0 KB
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\Parsing;
13
14/**
15 * Class Token
16 *
17 * Represents a token in the HTML flow
18 */
19class Token
20{
21 /**
22 * @var string
23 */
24 private $type;
25
26 /**
27 * @var string
28 */
29 private $data;
30
31 /**
32 * @var int
33 */
34 private $line;
35
36 /**
37 * @param string $type
38 * @param string $data
39 * @param int $line
40 */
41 public function __construct($type, $data, $line = -1)
42 {
43 $this->type = $type;
44 $this->data = $data;
45 $this->line = $line;
46 }
47
48 /**
49 * @return string
50 */
51 public function getType()
52 {
53 return $this->type;
54 }
55
56 /**
57 * @return string
58 */
59 public function getData()
60 {
61 return $this->data;
62 }
63
64 /**
65 * @return int
66 */
67 public function getLine()
68 {
69 return $this->line;
70 }
71}
Note: See TracBrowser for help on using the repository browser.