Completed
Pull Request — master (#32)
by Sergey
03:28
created

PinterestBot::__clone()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace seregazhuk\PinterestBot\Factories;
4
5
use seregazhuk\PinterestBot\Bot;
6
use seregazhuk\PinterestBot\Api\Request;
7
use seregazhuk\PinterestBot\Api\Response;
8
use seregazhuk\PinterestBot\Api\CurlAdapter;
9
use seregazhuk\PinterestBot\Api\ProvidersContainer;
10
11
class PinterestBot
12
{
13
    public static function create()
14
    {
15
        $request = new Request(new CurlAdapter());
16
        $response = new Response();
17
        $providersContainer = new ProvidersContainer($request, $response);
18
19
        return new Bot($providersContainer);
20
    }
21
22
    private function __construct()
23
    {
24
    }
25
26
    private function __clone()
27
    {
28
    }
29
}