We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 23 | class ArticleRepository extends BaseRepository |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var Article|Builder|Collection |
||
| 27 | */ |
||
| 28 | protected $model; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * PageRepository constructor. |
||
| 32 | * |
||
| 33 | * @param Article|Menu $model |
||
|
|
|||
| 34 | */ |
||
| 35 | public function __construct(Article $model) |
||
| 39 | |||
| 40 | public function whereSitemappable() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @ver 5.0.2 |
||
| 47 | * @date 08/03/2018 |
||
| 48 | * @param int $count |
||
| 49 | * @return \Illuminate\Database\Eloquent\Collection|Collection|static[] |
||
| 50 | */ |
||
| 51 | public function latest($count = 7) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @ver 5.0.2 |
||
| 58 | * @date 08/03/2018 |
||
| 59 | * @param int $count |
||
| 60 | * @return \Illuminate\Database\Eloquent\Collection|Collection|static[] |
||
| 61 | */ |
||
| 62 | public function mostViewed($count = 7) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @ver 5.1.13 |
||
| 69 | * @date 19/03/2018 |
||
| 70 | * @return mixed |
||
| 71 | */ |
||
| 72 | public function uniqueCreators() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @ver 5.1.14 |
||
| 79 | * @date 19/03/2018 |
||
| 80 | * @return mixed |
||
| 81 | */ |
||
| 82 | public function viewable() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param int $count |
||
| 89 | * @return \Illuminate\Contracts\Pagination\Paginator |
||
| 90 | */ |
||
| 91 | public function paginateLatest(int $count) |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @ver 5.1.13 |
||
| 98 | * @date 19/03/2018 |
||
| 99 | * @return mixed |
||
| 100 | */ |
||
| 101 | public function activeCategories() |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @ver 5.1.15 |
||
| 108 | * @date 19/03/2018 |
||
| 109 | * @param int $creator_id |
||
| 110 | * @return integer |
||
| 111 | */ |
||
| 112 | public function publishedArticlesCount(int $creator_id) |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @return \Illuminate\Database\Eloquent\Collection|mixed|static[] |
||
| 119 | */ |
||
| 120 | public function whereStatusActive() |
||
| 124 | |||
| 125 | public function collectArticle(string $slug) |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @param string $text |
||
| 132 | * @param int $paginate |
||
| 133 | * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator |
||
| 134 | */ |
||
| 135 | public function searchThenPaginate(string $text, int $paginate = 7) |
||
| 139 | |||
| 140 | public function whereCreatorId(int $creator_id, int $paginate = 5) |
||
| 144 | |||
| 145 | public function whereCategoryId(int $id, int $paginate = 5) |
||
| 149 | } |