Completed
Pull Request — master (#308)
by Sergey
06:18
created

HasProfileSettings::getAccountTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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);
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);
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);
36
    }
37
}
38