| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class InstagramMemoryPersistentDataHandler implements PersistentDataInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array The session data to keep in memory. |
||
| 14 | */ |
||
| 15 | protected $sessionData = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | public function get($key) |
||
| 21 | { |
||
| 22 | return isset($this->sessionData[$key]) ? $this->sessionData[$key] : null; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | public function set($key, $value) |
||
| 31 | } |
||
| 32 | } |
||
| 33 |