| 1 | <?php |
||
| 5 | trait Search |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Search photos |
||
| 9 | * Get a single page of photo results for a query. |
||
| 10 | * @link https://unsplash.com/documentation#search-photos |
||
| 11 | * |
||
| 12 | * @return MarkSitko\LaravelUnsplash\Endpoints\Search |
||
| 13 | */ |
||
| 14 | public function search() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Search collections |
||
| 24 | * Get a single page of collection results for a query. |
||
| 25 | * @link https://unsplash.com/documentation#search-collections |
||
| 26 | * |
||
| 27 | * @return MarkSitko\LaravelUnsplash\Endpoints\Search |
||
| 28 | */ |
||
| 29 | public function searchCollections() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Search users |
||
| 39 | * Get a single page of user results for a query. |
||
| 40 | * @link https://unsplash.com/documentation#search-users |
||
| 41 | * |
||
| 42 | * @return MarkSitko\LaravelUnsplash\Endpoints\Search |
||
| 43 | */ |
||
| 44 | public function searchUsers() |
||
| 51 | |||
| 52 | } |
||
| 53 |
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: