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

SearchResponse::getRawBookmarksData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
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;
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
}