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

SettingsResource::acceptAgreement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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