Passed
Push — develop ( 2448c8...de9fda )
by Nikolay
06:00 queued 10s
created

GetController::callAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Copyright (C) MIKO LLC - All Rights Reserved
4
 * Unauthorized copying of this file, via any medium is strictly prohibited
5
 * Proprietary and confidential
6
 * Written by Nikolay Beketov, 4 2020
7
 *
8
 */
9
10
namespace MikoPBX\PBXCoreREST\Controllers\Advices;
11
12
use MikoPBX\PBXCoreREST\Controllers\BaseController;
13
14
class GetController extends BaseController
15
{
16
    /**
17
     * Get advices and notifications /pbxcore/api/advices/
18
     *
19
     * Makes the list of notifications about system, firewall, passwords, wrong settings
20
     * curl http://127.0.0.1/pbxcore/api/advices/getList;
21
     *
22
     *
23
     * @param $actionName
24
     */
25
    public function callAction($actionName): void
26
    {
27
        $this->sendRequestToBackendWorker('advices', $actionName);
28
    }
29
}