1 | <?php |
||
19 | class RepositoryNameAssert { |
||
20 | |||
21 | /** |
||
22 | * @since 6.3 |
||
23 | * |
||
24 | * @param string $value The actual value of the parameter |
||
25 | * @param string $name The name of the parameter being checked |
||
26 | * |
||
27 | * @throws ParameterAssertionException If $value is not a valid repository name. |
||
28 | */ |
||
29 | public static function assertParameterIsValidRepositoryName( $value, $name ) { |
||
34 | |||
35 | /** |
||
36 | * @since 6.3 |
||
37 | * |
||
38 | * @param array $values The actual value of the parameter. If this is not an array, |
||
39 | * a ParameterTypeException is thrown. |
||
40 | * @param string $name The name of the parameter being checked |
||
41 | * |
||
42 | * @throws ParameterAssertionException If any element of $values is not |
||
43 | * a valid repository name. |
||
44 | */ |
||
45 | public static function assertParameterKeysAreValidRepositoryNames( $values, $name ) { |
||
59 | |||
60 | /** |
||
61 | * @param string $value |
||
62 | * @return bool |
||
63 | */ |
||
64 | private static function isValidRepositoryName( $value ) { |
||
67 | |||
68 | } |
||
69 |