Passed
Push — master ( 860ea9...5696bd )
by Alexey
03:34
created

PostApi::getPostById()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 12
ccs 0
cts 9
cp 0
rs 9.4285
cc 2
eloc 6
nc 2
nop 1
crap 6
1
<?php
2
3
namespace Skobkin\Bundle\PointToolsBundle\Service;
4
5
use Guzzle\Service\Client;
6
use Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs\PostFactory;
7
8
/**
9
 * Basic Point.im user API functions from /api/post
10
 */
11
class PostApi extends AbstractApi
12
{
13
    /**
14
     * @var PostFactory
15
     */
16
    private $postFactory;
17
18
19
    public function __construct(Client $httpClient, $https = true, $baseUrl = null, PostFactory $postFactory)
20
    {
21
        parent::__construct($httpClient, $https, $baseUrl);
22
23
        $this->postFactory = $postFactory;
24
    }
25
26
    public function getName()
27
    {
28
        return 'skobkin_point_tools_api_post';
29
    }
30
}
31