Completed
Pull Request — master (#100)
by Sergey
02:24
created

News   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 7
Bugs 2 Features 1
Metric Value
wmc 1
c 7
b 2
f 1
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A last() 0 4 1
1
<?php
2
3
namespace seregazhuk\PinterestBot\Api\Providers;
4
5
use seregazhuk\PinterestBot\Helpers\UrlHelper;
6
7
class News extends Provider
8
{
9
    protected $loginRequired = ['latest'];
10
11
    /**
12
     * Get user's latest news array.
13
     *
14
     * @return array
15
     */
16
    public function last()
17
    {
18
        return $this->execGetRequest(['allow_state' => true], UrlHelper::RESOURCE_GET_LATEST_NEWS);
19
    }
20
}
21