1 | <?php |
||
17 | class PdfWriter |
||
18 | { |
||
19 | /** |
||
20 | * @var ObjectWriter |
||
21 | */ |
||
22 | private $objectWriter; |
||
23 | |||
24 | /** |
||
25 | * @var PdfWriterOptions |
||
26 | */ |
||
27 | private $options; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $permanentFileIdentifier; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $changingFileIdentifier; |
||
38 | |||
39 | /** |
||
40 | * @var EncryptionInterface |
||
41 | */ |
||
42 | private $encryption; |
||
43 | |||
44 | /** |
||
45 | * @var DocumentInformation |
||
46 | */ |
||
47 | private $documentInformation; |
||
48 | |||
49 | /** |
||
50 | * @var array |
||
51 | */ |
||
52 | private $objectOffsets = []; |
||
53 | |||
54 | /** |
||
55 | * @param SplFileObject $fileObject |
||
56 | * @param PdfWriterOptions $options |
||
57 | */ |
||
58 | public function __construct(SplFileObject $fileObject, PdfWriterOptions $options = null) |
||
72 | |||
73 | /** |
||
74 | * @return DocumentInformation |
||
75 | */ |
||
76 | public function getDocumentInformation() |
||
80 | |||
81 | /** |
||
82 | * Closes the document by writing the file trailer. |
||
83 | * |
||
84 | * While the PDF writer will remove all references to the passed in file object in itself to avoid further writing |
||
85 | * and to allow the file pointer to be closed, the callee may still have a reference to it. If that is the case, |
||
86 | * make sure to unset it if you don't need it. |
||
87 | * |
||
88 | * Any further attempts to append data to the PDF writer will result in an exception. |
||
89 | */ |
||
90 | public function closeDocument() |
||
96 | |||
97 | /** |
||
98 | * Creates a PDF writer which writes everything to a file. |
||
99 | * |
||
100 | * @param string $filename |
||
101 | * @param PdfWriterOptions|null $options |
||
102 | * @return static |
||
103 | */ |
||
104 | public static function toFile($filename, PdfWriterOptions $options = null) |
||
108 | |||
109 | /** |
||
110 | * Creates a PDF writer which outputs everything to the STDOUT. |
||
111 | * |
||
112 | * @param PdfWriterOptions|null $options |
||
113 | * @return static |
||
114 | */ |
||
115 | public static function output(PdfWriterOptions $options = null) |
||
119 | |||
120 | /** |
||
121 | * Writes the xref table. |
||
122 | * |
||
123 | * @return int |
||
124 | */ |
||
125 | private function writeXrefTable() |
||
140 | |||
141 | /** |
||
142 | * Writes the trailer. |
||
143 | */ |
||
144 | private function writeTrailer() |
||
160 | |||
161 | /** |
||
162 | * Writes the footer. |
||
163 | * |
||
164 | * @param int $xrefOffset |
||
165 | */ |
||
166 | private function writeFooter($xrefOffset) |
||
173 | } |
||
174 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.