| Total Complexity | 7 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class PersistentDataFactory |
||
| 8 | { |
||
| 9 | private function __construct() |
||
| 11 | // a factory constructor should never be invoked |
||
| 12 | } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * PersistentData generation. |
||
| 16 | * |
||
| 17 | * @param PersistentDataInterface|string|null $handler |
||
| 18 | * |
||
| 19 | * @throws InvalidArgumentException If the persistent data handler isn't "session", "memory", or an instance of Instagram\PersistentData\PersistentDataInterface. |
||
| 20 | * |
||
| 21 | * @return PersistentDataInterface |
||
| 22 | */ |
||
| 23 | public static function createPersistentDataHandler($handler) |
||
| 45 |