OzanKurt/LiveCoding-API

View on GitHub
src/Storages/SessionStorage.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Kurt\LiveCoding\Storages;

use Kurt\LiveCoding\AuthTokens\SessionAuthToken;

/**
 * Class SessionStorage
 * @package Kurt\LiveCoding\Storages
 */
class SessionStorage extends Storage
{
    /**
     * [__construct description].
     */
    public function __construct()
    {
        $this->initializeAuthToken();
    }

    /**
     * Initialize AuthToken instance related to the storage.
     *
     * @return void
     */
    protected function initializeAuthToken()
    {
        $this->authToken = new SessionAuthToken();
    }
}