API.php 605 Bytes
<?php
namespace App\Service;

use GuzzleHttp\Client;

class API  implements \App\Service\Contract\API {
    protected $client;

    protected function __construct(){
        $this->client = new Client();
    }

    static function getInstance($api){
        switch($api){
            case 'yd':
                return new YandexDirect();
                break;
        }
    }

    function getAuthLink()
    {
        return '';
    }

    function getToken($code)
    {

    }

    protected function getTokenUrl(){
        return '';
    }

    function extractToken($data){
        return '';
    }
}