| 1 | <?php namespace VojtaSvoboda\Reviews\Components; |
||
| 8 | class Reviews extends ComponentBase |
||
| 9 | { |
||
| 10 | private $reviews; |
||
| 11 | |||
| 12 | public function componentDetails() |
||
| 19 | |||
| 20 | public function defineProperties() |
||
| 31 | |||
| 32 | public function onRun() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get reviews. |
||
| 45 | * |
||
| 46 | * @param Category $category Filter by category. |
||
| 47 | * |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | public function reviews($category = null) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get category by slug. |
||
| 61 | * |
||
| 62 | * @param $category |
||
| 63 | * |
||
| 64 | * @return mixed |
||
| 65 | */ |
||
| 66 | public function getCategory($category) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Get Facade. |
||
| 73 | * |
||
| 74 | * @return ReviewsFacade |
||
| 75 | */ |
||
| 76 | private function getFacade() |
||
| 80 | } |
||
| 81 |