Completed
Push — master ( f63129...3a8a63 )
by Sergey
03:49
created

Interests   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 4
Bugs 1 Features 1
Metric Value
wmc 3
c 4
b 1
f 1
lcom 0
cbo 2
dl 0
loc 24
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntityIdName() 0 4 1
A getFollowUrl() 0 4 1
A getUnfFollowUrl() 0 4 1
1
<?php
2
3
namespace seregazhuk\PinterestBot\Api\Providers;
4
5
use seregazhuk\PinterestBot\Api\Request;
6
use seregazhuk\PinterestBot\Helpers\UrlHelper;
7
use seregazhuk\PinterestBot\Helpers\Providers\Traits\FollowTrait;
8
9
class Interests extends Provider
10
{
11
    use FollowTrait;
12
13
    protected $loginRequired = [
14
        'follow',
15
        'unFollow'
16
    ];
17
18
    protected function getEntityIdName()
19
    {
20
        return Request::INTEREST_ENTITY_ID;
21
    }
22
23
    protected function getFollowUrl()
24
    {
25
        return UrlHelper::RESOURCE_FOLLOW_INTEREST;
26
    }
27
28
    protected function getUnfFollowUrl()
29
    {
30
        return UrlHelper::RESOURCE_UNFOLLOW_INTEREST;
31
    }
32
}
33