| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | class Tiqr_UserStorage |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * Get a storage of a certain type |
||
| 31 | * |
||
| 32 | * @param String $type The type of storage to create. Supported |
||
| 33 | * types are 'file', 'pdo' or the full class name of a custom solution. |
||
| 34 | * @param array $options The options to pass to the storage |
||
| 35 | * instance. See the documentation |
||
| 36 | * in the UserStorage/ subdirectory for |
||
| 37 | * options per type. |
||
| 38 | * @param LoggerInterface $logger |
||
| 39 | * |
||
| 40 | * @return Tiqr_UserStorage_Interface |
||
| 41 | * |
||
| 42 | * @throws Exception An exception if an unknown user storage is requested. |
||
| 43 | */ |
||
| 44 | 6 | public static function getStorage(string $type, array $options, LoggerInterface $logger): Tiqr_UserStorage_Interface |
|
| 56 |