seregazhuk /
php-pinterest-bot
| 1 | <?php |
||
| 2 | |||
| 3 | namespace seregazhuk\PinterestBot\Api\Traits; |
||
| 4 | |||
| 5 | use seregazhuk\PinterestBot\Helpers\UrlBuilder; |
||
| 6 | |||
| 7 | trait HasProfileSettings |
||
| 8 | { |
||
| 9 | use HandlesRequest; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Get list of available locales |
||
| 13 | * @return array |
||
| 14 | */ |
||
| 15 | public function getLocales() |
||
| 16 | { |
||
| 17 | return $this->get(UrlBuilder::RESOURCE_AVAILABLE_LOCALES); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get list of available countries |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getCountries() |
||
| 25 | { |
||
| 26 | return $this->get(UrlBuilder::RESOURCE_AVAILABLE_COUNTRIES); |
||
|
0 ignored issues
–
show
|
|||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get list of available account types |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function getAccountTypes() |
||
| 34 | { |
||
| 35 | return $this->get(UrlBuilder::RESOURCE_AVAILABLE_ACCOUNT_TYPES); |
||
|
0 ignored issues
–
show
|
|||
| 36 | } |
||
| 37 | } |
||
| 38 |