1 | <?php |
||
19 | class RepositoryNameAssert { |
||
20 | |||
21 | /** |
||
22 | * @param string $value The actual value of the parameter |
||
23 | * @param string $name The name of the parameter being checked |
||
24 | * |
||
25 | * @throws ParameterAssertionException If $value is not a valid repository name. |
||
26 | */ |
||
27 | public static function assertParameterIsValidRepositoryName( $value, $name ) { |
||
32 | |||
33 | /** |
||
34 | * @param array $values The actual value of the parameter. If this is not an array, |
||
35 | * a ParameterTypeException is thrown. |
||
36 | * @param string $name The name of the parameter being checked |
||
37 | * |
||
38 | * @throws ParameterAssertionException If any element of $values is not |
||
39 | * a valid repository name. |
||
40 | */ |
||
41 | public static function assertParameterKeysAreValidRepositoryNames( $values, $name ) { |
||
55 | |||
56 | /** |
||
57 | * @param string $value |
||
58 | * @return bool |
||
59 | */ |
||
60 | private static function isValidRepositoryName($value ) { |
||
63 | |||
64 | } |
||
65 |