Completed
Push — master ( f63129...3a8a63 )
by Sergey
03:49
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\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