ResourceOwner   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
1
<?php
2
/**
3
 * MercadoLibre Provider for OAuth 2.0 Client
4
 *
5
 * Licensed under The MIT License
6
 * For full copyright and license information, please see the LICENSE file
7
 * Redistributions of files must retain the above copyright notice.
8
 *
9
 * @copyright 2018 Lucas Banegas <[email protected]>
10
 * @license https://opensource.org/licenses/MIT MIT License
11
 * @author Lucas Banegas <[email protected]>
12
 * @link https://github.com/docta/oauth2-mercadolibre Repository
13
 * @link https://docta.github.io/oauth2-mercadolibre Documentation
14
 */
15
namespace Docta\MercadoLibre\OAuth2\Client;
16
17
use League\OAuth2\Client\Provider\ResourceOwnerInterface;
18
19
/**
20
 * Represents an owner resource.
21
 */
22
class ResourceOwner extends ResourceGeneric implements ResourceOwnerInterface
23
{
24
    /**
25
     * Returns the identifier of the owner resource
26
     *
27
     * @return string The id value
28
     */
29
    public function getId()
30
    {
31
        return $this->get('id');
32
    }
33
}
34