Last change
on this file since 418 was 347, checked in by roby, 4 years ago |
Aggiornamento per compatibilità con php7.4
|
File size:
1.9 KB
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * Html2Pdf Library - Exception 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 |
|
---|
13 | namespace Spipu\Html2Pdf\Exception;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Long Sentence Exception
|
---|
17 | */
|
---|
18 | class LongSentenceException extends Html2PdfException
|
---|
19 | {
|
---|
20 | /**
|
---|
21 | * ERROR CODE 3
|
---|
22 | * @var int
|
---|
23 | */
|
---|
24 | const ERROR_CODE = 3;
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * the sentence
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | protected $sentence;
|
---|
31 |
|
---|
32 | /**
|
---|
33 | * the width of the box
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | protected $widthBox;
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * the length of the sentence
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | protected $length;
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * set the sentence
|
---|
46 | *
|
---|
47 | * @param string $value the value
|
---|
48 | *
|
---|
49 | * @return LongSentenceException
|
---|
50 | */
|
---|
51 | public function setSentence($value)
|
---|
52 | {
|
---|
53 | $this->sentence = $value;
|
---|
54 |
|
---|
55 | return $this;
|
---|
56 | }
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * get the image in error
|
---|
60 | *
|
---|
61 | * @return string
|
---|
62 | */
|
---|
63 | public function getSentence()
|
---|
64 | {
|
---|
65 | return $this->sentence;
|
---|
66 | }
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * set the width of the box that contain the sentence
|
---|
70 | *
|
---|
71 | * @param string $value the value
|
---|
72 | *
|
---|
73 | * @return LongSentenceException
|
---|
74 | */
|
---|
75 | public function setWidthBox($value)
|
---|
76 | {
|
---|
77 | $this->widthBox = $value;
|
---|
78 |
|
---|
79 | return $this;
|
---|
80 | }
|
---|
81 |
|
---|
82 | /**
|
---|
83 | * get the image in error
|
---|
84 | *
|
---|
85 | * @return string
|
---|
86 | */
|
---|
87 | public function getWidthBox()
|
---|
88 | {
|
---|
89 | return $this->widthBox;
|
---|
90 | }
|
---|
91 |
|
---|
92 | /**
|
---|
93 | * set the length
|
---|
94 | *
|
---|
95 | * @param string $value the value
|
---|
96 | *
|
---|
97 | * @return LongSentenceException
|
---|
98 | */
|
---|
99 | public function setLength($value)
|
---|
100 | {
|
---|
101 | $this->length = $value;
|
---|
102 |
|
---|
103 | return $this;
|
---|
104 | }
|
---|
105 |
|
---|
106 | /**
|
---|
107 | * get the length
|
---|
108 | *
|
---|
109 | * @return string
|
---|
110 | */
|
---|
111 | public function getLength()
|
---|
112 | {
|
---|
113 | return $this->length;
|
---|
114 | }
|
---|
115 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.