| 1 | <?php |
||
| 18 | abstract class AbstractUuid |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * |
||
| 22 | * Does the value match the canonical UUID format? |
||
| 23 | * |
||
| 24 | * @param string $value The value to be checked. |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | * |
||
| 28 | */ |
||
| 29 | 21 | protected function isCanonical($value) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * |
||
| 37 | * Is the value a hex-only UUID? |
||
| 38 | * |
||
| 39 | * @param string $value The value to be checked. |
||
| 40 | * |
||
| 41 | * @return bool |
||
| 42 | * |
||
| 43 | */ |
||
| 44 | 29 | protected function isHexOnly($value) |
|
| 49 | } |
||
| 50 |