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

SearchResponse::getBookmarks()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
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
}