Completed
Pull Request — master (#237)
by Sergey
02:43
created

SearchResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRawBookmarksData() 0 4 1
A getResponseData() 0 4 1
1
<?php
2
3
namespace seregazhuk\PinterestBot\Api;
4
5
class SearchResponse extends Response
6
{
7
    protected function getRawBookmarksData()
8
    {
9
        return $this->getData('module.tree.resource.options.bookmarks', []);
10
    }
11
12
    /**
13
     * @param null $key
14
     * @return array
15
     */
16
    public function getResponseData($key = null)
17
    {
18
        return $this->getData('module.tree.data.results', []);
19
    }
20
}