1 | <?php |
||
5 | trait Stats |
||
6 | { |
||
7 | /** |
||
8 | * Totals |
||
9 | * Get a list of counts for all of Unsplash. |
||
10 | * @link https://unsplash.com/documentation#totals |
||
11 | * |
||
12 | * @return MarkSitko\LaravelUnsplash\Endpoints\Stats |
||
13 | */ |
||
14 | public function totalStats() |
||
21 | |||
22 | /** |
||
23 | * Month |
||
24 | * Get the overall Unsplash stats for the past 30 days. |
||
25 | * @link https://unsplash.com/documentation#month |
||
26 | * |
||
27 | * @return MarkSitko\LaravelUnsplash\Endpoints\Stats |
||
28 | */ |
||
29 | public function monthlyStats() |
||
36 | } |
||
37 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: