Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class PublisherException extends FrameworkException |
||
20 | { |
||
21 | /** |
||
22 | * Lève lorsqu'un fichier doit être écrasé mais ne le peut pas. |
||
23 | * |
||
24 | * @param string $from Le fichier source |
||
25 | * @param string $to The destination file |
||
26 | */ |
||
27 | public static function collision(string $from, string $to) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Lève une fois donnée une destination qui ne figure pas dans la liste des répertoires autorisés. |
||
34 | */ |
||
35 | public static function destinationNotAllowed(string $destination) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Lève lorsqu'un fichier ne correspond pas au modèle autorisé pour sa destination. |
||
42 | */ |
||
43 | public static function fileNotAllowed(string $file, string $directory, string $pattern) |
||
48 |