1 | <?php |
||
21 | final class Info |
||
22 | { |
||
23 | /** |
||
24 | * @var DictionaryObject |
||
25 | */ |
||
26 | private $dictionary; |
||
27 | |||
28 | /** |
||
29 | * @param DictionaryObject $dictionary |
||
30 | */ |
||
31 | public function __construct(DictionaryObject $dictionary) |
||
35 | |||
36 | /** |
||
37 | * Sets an entry in the information dictionary. |
||
38 | * |
||
39 | * The CreationData and ModDate values are restricted for internal use, so trying to set them will trigger an |
||
40 | * exception. Setting the "Trapped" value is allowed, but it must be one of the values "True", "False" or "Unknown". |
||
41 | * You can set any key in here, but the following are the standard keys recognized by the PDF standard. Keep in mind |
||
42 | * that the keys are case-sensitive: |
||
43 | * |
||
44 | * Title, Author, Subject, Keywords, Creator, Producer and Trapped. |
||
45 | * |
||
46 | * @param string $key |
||
47 | * @param string $value |
||
48 | * @throws DomainException |
||
49 | */ |
||
50 | public function set($key, $value) |
||
67 | |||
68 | /** |
||
69 | * Removes an entry from the information dictionary. |
||
70 | * |
||
71 | * @param string $key |
||
72 | */ |
||
73 | public function remove($key) |
||
77 | |||
78 | /** |
||
79 | * Checks whether an entry exists in the information dictionary. |
||
80 | * |
||
81 | * @param string $key |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function has($key) |
||
88 | |||
89 | /** |
||
90 | * Retrieves the value for a specific entry in the information dictionary. |
||
91 | * |
||
92 | * You may retrieve any entry from the information dictionary through this method, except for "CreationData" and |
||
93 | * "ModDate". Those two entries have their own respective methods to be retrieved. |
||
94 | * |
||
95 | * @param string $key |
||
96 | * @return string |
||
97 | * @throws DomainException |
||
98 | * @throws UnexpectedValueException |
||
99 | */ |
||
100 | public function get($key) |
||
130 | |||
131 | /** |
||
132 | * @return DateTimeImmutable |
||
133 | */ |
||
134 | public function getCreationDate() |
||
138 | |||
139 | /** |
||
140 | * @return DateTimeImmutable |
||
141 | */ |
||
142 | public function getModificationDate() |
||
146 | |||
147 | /** |
||
148 | * @param string $key |
||
149 | * @return DateTimeImmutable |
||
150 | * @throws UnexpectedValueException |
||
151 | */ |
||
152 | private function retrieveDate($key) |
||
166 | } |
||
167 |
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.