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

Interests::getFollowUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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