| 1 | <?php |
||
| 9 | class Topics extends Provider |
||
| 10 | { |
||
| 11 | use Followable, HasRelatedTopics; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $loginRequiredFor = ['follow', 'unFollow']; |
||
| 17 | |||
| 18 | protected $followUrl = UrlBuilder::RESOURCE_FOLLOW_INTEREST; |
||
| 19 | protected $unFollowUrl = UrlBuilder::RESOURCE_UNFOLLOW_INTEREST; |
||
| 20 | |||
| 21 | protected $entityIdName = 'interest_id'; |
||
| 22 | protected $feedUrl = UrlBuilder::RESOURCE_GET_TOPIC_FEED; |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * Get category info |
||
| 27 | * |
||
| 28 | * @param string $topic |
||
| 29 | * @return array|bool |
||
| 30 | */ |
||
| 31 | public function getInfo($topic) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param $interest |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | protected function getFeedRequestData($interest) |
||
| 47 | } |