Total Complexity | 3 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Interests extends Provider |
||
11 | { |
||
12 | use HasRelatedTopics; |
||
13 | |||
14 | protected $feedUrl = UrlBuilder::RESOURCE_GET_CATEGORY_FEED; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $loginRequiredFor = [ |
||
20 | 'main', |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * Get list of main categories |
||
25 | * |
||
26 | * @return array|bool |
||
27 | */ |
||
28 | public function main() |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get category info |
||
35 | * |
||
36 | * @param string $category |
||
37 | * @return array|bool |
||
38 | */ |
||
39 | public function info($category) |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Returns a feed of pins. |
||
46 | * |
||
47 | * @param string $interest |
||
48 | * @param int $limit |
||
49 | * @return Pagination |
||
50 | */ |
||
51 | public function pins($interest, $limit = Pagination::DEFAULT_LIMIT) |
||
61 |