| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SuperjobRuResourceOwner implements ResourceOwnerInterface |
||
| 9 | { |
||
| 10 | use ArrayAccessorTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Raw response |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $response; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array $response |
||
| 21 | */ |
||
| 22 | public function __construct(array $response) |
||
| 23 | { |
||
| 24 | $this->response = $response; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Returns the identifier of the authorized resource owner. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getId() |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns the shop name. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getName() |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Return all of the owner details available as an array. |
||
| 49 | * |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | public function toArray() |
||
| 57 |