Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class MastodonResourceOwner implements ResourceOwnerInterface |
||
15 | { |
||
16 | |||
17 | use ArrayAccessorTrait; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $response; |
||
23 | |||
24 | 2 | public function __construct(array $response = array()) |
|
27 | 2 | } |
|
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | 2 | public function getId() |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 2 | public function getName() |
|
41 | { |
||
42 | 2 | return $this->getValueByKey($this->response, 'username'); |
|
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | 2 | public function toArray() |
|
52 | } |
||
53 | } |
||
54 |