Completed
Push — master ( 2a28c4...4998b6 )
by dotzero
03:11
created

SettingsResource   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A acceptAgreement() 0 4 1
1
<?php
2
3
namespace Habrahabr\Api\Resources;
4
5
use Habrahabr\Api\Exception\IncorrectUsageException;
6
7
/**
8
 * Class SettingsResource
9
 *
10
 * Ресурс работы с настройками профиля
11
 *
12
 * @package Habrahabr\Api\Resources
13
 * @version 0.1.2
14
 * @author thematicmedia <[email protected]>
15
 * @link https://tmtm.ru/
16
 * @link https://habrahabr.ru/
17
 * @link https://github.com/thematicmedia/habrahabr_api
18
 *
19
 * For the full copyright and license information, please view the LICENSE
20
 * file that was distributed with this source code.
21
 */
22
class SettingsResource extends AbstractResource implements ResourceInterface
23
{
24
    /**
25
     * Принять соглашение
26
     *
27
     * @return array
28
     */
29 1
    public function acceptAgreement()
30
    {
31 1
        return $this->adapter->put('/settings/agreement');
32
    }
33
}
34