| 1 | <?php |
||
| 8 | class Interests extends Provider |
||
| 9 | { |
||
| 10 | use Followable; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $loginRequiredFor = ['follow', 'unFollow']; |
||
| 16 | |||
| 17 | protected $followUrl = UrlHelper::RESOURCE_FOLLOW_INTEREST; |
||
| 18 | protected $unFollowUrl = UrlHelper::RESOURCE_UNFOLLOW_INTEREST; |
||
| 19 | |||
| 20 | protected $entityIdName = 'interest_id'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get list of main categories |
||
| 24 | * |
||
| 25 | * @return array|bool |
||
| 26 | */ |
||
| 27 | public function getMain() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get category info |
||
| 34 | * |
||
| 35 | * @param string $category |
||
| 36 | * @return array|bool |
||
| 37 | */ |
||
| 38 | public function getInfo($category) |
||
| 42 | } |
||
| 43 |