Completed
Push — master ( f619f7...59f6c6 )
by Luca
01:16
created

BleveModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A purgeAllIndexes() 0 4 1
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
use Psr\Http\Message\ResponseInterface;
15
16
/**
17
 * Class BleveModel
18
 *
19
 * @package Gnello\Mattermost\Models
20
 */
21
class BleveModel extends AbstractModel
22
{
23
    /**
24
     * @var string
25
     */
26
    private static $endpoint = '/bleve';
27
28
    /**
29
     * @param $roleId
30
     * @return ResponseInterface
31
     */
32
    public function purgeAllIndexes()
33
    {
34
        return $this->client->get(self::$endpoint . '/purge_indexes');
35
    }
36
}
37