1 | <?php |
||
11 | class ErrorMessages |
||
12 | { |
||
13 | /** |
||
14 | * @param $expectedTypeName [Name of the expected class as a string] |
||
15 | * @param string $foundTypeName [Name of the class that was used instead] |
||
16 | * @return string [Concatenated message as a string] |
||
17 | */ |
||
18 | public static function getIncompatibleTypesMessage($expectedTypeName, $foundTypeName) |
||
27 | |||
28 | /** |
||
29 | * @param $foundValue [Name of the expected value as a string] |
||
30 | * @return string [Concatenated message as a string] |
||
31 | */ |
||
32 | public static function getMustBePositiveNumberMessage($foundValue) |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @param $foundValue [Name of the expected value as a string] |
||
44 | * @return string [Concatenated message as a string] |
||
45 | */ |
||
46 | public static function getMustNotBeNegativeNumberMessage($foundValue) |
||
54 | |||
55 | /** |
||
56 | * @param $configField [Name of the expected value as a string] |
||
57 | * @return string [Concatenated message as a string] |
||
58 | */ |
||
59 | public static function getConfigFieldNotFoundMessage($configField) |
||
67 | |||
68 | /** |
||
69 | * @param $propertyName [Name of the property as a string] |
||
70 | * @param string $className [Name of the class as a string] |
||
71 | * @return string [Concatenated message as a string] |
||
72 | */ |
||
73 | public static function getNonExistentPropertyMessage($propertyName, $className) |
||
82 | |||
83 | /** |
||
84 | * @param $factoryClassName [Name of the uninitialized factory class as a string] |
||
85 | * @return string [Concatenated message as a string] |
||
86 | */ |
||
87 | public static function getFactoryClassNotInitializedMessage($factoryClassName) |
||
95 | |||
96 | /** |
||
97 | * @param $factoryClassName [Name of the factory class as a string] |
||
98 | * @param $factoriesNamespace [Name of the namespace that the factory class is supposed to be in as a string] |
||
99 | * @return string [Concatenated message as a string] |
||
100 | */ |
||
101 | public static function getFactoryClassExpectedInNamespaceMessage($factoryClassName, $factoriesNamespace) |
||
110 | |||
111 | /** |
||
112 | * @param $factoryClassName [Name of the factory class as a string] |
||
113 | * @param string $factoryClassAncestorName [Name of the factory class' expected parent class name as a string] |
||
114 | * @return string [Concatenated message as a string] |
||
115 | */ |
||
116 | public static function getFactoryClassExpectedAncestorMessage($factoryClassName, $factoryClassAncestorName) |
||
125 | |||
126 | /** |
||
127 | * @return string [Message as a string] |
||
128 | */ |
||
129 | public static function getMustDefineManufacturedClassNameMessage() |
||
133 | |||
134 | /** |
||
135 | * @param $className [Name of the class that has not been defined] |
||
136 | * @return string [Concatenated message as a string] |
||
137 | */ |
||
138 | public static function getClassNotDefinedMessage($className) |
||
146 | |||
147 | /** |
||
148 | * @return string [Message as a string] |
||
149 | */ |
||
150 | public static function getInvalidTypeMessage() |
||
154 | |||
155 | /** |
||
156 | * @return string [Message as a string] |
||
157 | */ |
||
158 | public static function getStartDateMustBeBeforeEndDateMessage() |
||
162 | |||
163 | /** |
||
164 | * @return string [Message as a string] |
||
165 | */ |
||
166 | public static function getDayCountConventionNotDefinedMessage() |
||
170 | |||
171 | /** |
||
172 | * @return string [Message as a string] |
||
173 | */ |
||
174 | public static function getPropresultarrayNotSuppliedMessage() |
||
178 | |||
179 | /** |
||
180 | * @param string $methodName [Name of the method] |
||
181 | * @param string $className [Name of the class] |
||
182 | * @return string [Concatenated message as a string] |
||
183 | */ |
||
184 | public static function getMethodDoesNotExistMessage($methodName, $className) |
||
193 | } |
||
194 | } |
||
195 |