Completed
Push — master ( d0f8e4...6a2707 )
by Luca
01:22
created

DataRetentionModel::getPolicyDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This Driver is based entirely on official documentation of the Mattermost Web
4
 * Services API and you can extend it by following the directives of the documentation.
5
 *
6
 * God bless this mess.
7
 *
8
 * @author Luca Agnello <[email protected]>
9
 * @link https://api.mattermost.com/
10
 */
11
12
namespace Gnello\Mattermost\Models;
13
14
/**
15
 * Class DataRetentionModel
16
 *
17
 * @package Gnello\Mattermost\Models
18
 */
19
class DataRetentionModel extends AbstractModel
20
{
21
    /**
22
     * @var string
23
     */
24
    private static $endpoint = '/data_retention';
25
26
    /**
27
     * @return \Psr\Http\Message\ResponseInterface
28
     */
29
    public function getPolicyDetails()
30
    {
31
        return $this->client->get(self::$endpoint . '/policy');
32
    }
33
}
34