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

Interests   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 3
c 3
b 1
f 0
lcom 0
cbo 2
dl 0
loc 19
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\FollowHelper;
8
9
class Interests extends Provider
10
{
11
    use FollowHelper;
12
13
    protected function getEntityIdName()
14
    {
15
        return Request::INTEREST_ENTITY_ID;
16
    }
17
18
    protected function getFollowUrl()
19
    {
20
        return UrlHelper::RESOURCE_FOLLOW_INTEREST;
21
    }
22
23
    protected function getUnfFollowUrl()
24
    {
25
        return UrlHelper::RESOURCE_UNFOLLOW_INTEREST;
26
    }
27
}
28