1 | <?php |
||
18 | class WrongFormIdentifierObjectDataException extends FormzException |
||
19 | { |
||
20 | const WRONG_HASH = 'The following hash could not be decrypted: "%s".'; |
||
21 | |||
22 | const WRONG_TYPE = 'The data retrieved in the hash is not an array, the type is "%s".'; |
||
23 | |||
24 | const CLASS_NAME_NOT_FOUND = 'The class name property was not found in the decrypted hash.'; |
||
25 | |||
26 | const UNIQUE_HASH_NOT_FOUND = 'The unique hash property was not found in the decrypted hash.'; |
||
27 | |||
28 | const WRONG_CLASS_NAME = 'The class name fetched from the decrypted hash (value: "%s") does not match the class name of the form object (value: "%s").'; |
||
29 | |||
30 | /** |
||
31 | * @code 1490946563 |
||
32 | * |
||
33 | * @param string $hash |
||
34 | * @return self |
||
35 | */ |
||
36 | final public static function wrongHash($hash) |
||
46 | |||
47 | /** |
||
48 | * @code 1490946576 |
||
49 | * |
||
50 | * @param mixed $data |
||
51 | * @return self |
||
52 | */ |
||
53 | final public static function wrongType($data) |
||
63 | |||
64 | /** |
||
65 | * @code 1490946908 |
||
66 | * |
||
67 | * @return self |
||
68 | */ |
||
69 | final public static function classNameNotFound() |
||
76 | |||
77 | /** |
||
78 | * @code 1490946992 |
||
79 | * |
||
80 | * @return self |
||
81 | */ |
||
82 | final public static function uniqueHashNotFound() |
||
89 | |||
90 | /** |
||
91 | * @code 1490964528 |
||
92 | * |
||
93 | * @param string $fetchedClassName |
||
94 | * @param string $formObjectClassName |
||
95 | * @return WrongFormIdentifierObjectDataException |
||
96 | */ |
||
97 | final public static function wrongClassName($fetchedClassName, $formObjectClassName) |
||
107 | } |
||
108 |