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

BleveModel::purgeAllIndexes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
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
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