Completed
Push — master ( f813e0...5f1c56 )
by Thierry
03:59 queued 02:07
created

Sentry   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sentry() 0 4 1
A armada() 0 4 1
1
<?php
2
3
/**
4
 * Sentry.php - Upload Trait
5
 *
6
 * The Jaxon class uses a modular plug-in system to facilitate the processing
7
 * of special Ajax requests made by a PHP page.
8
 * It generates Javascript that the page must include in order to make requests.
9
 * It handles the output of response commands (see <Jaxon\Response\Response>).
10
 * Many flags and settings can be adjusted to effect the behavior of the Jaxon class
11
 * as well as the client-side javascript.
12
 *
13
 * @package jaxon-core
14
 * @author Thierry Feuzeu <[email protected]>
15
 * @copyright 2017 Thierry Feuzeu <[email protected]>
16
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
17
 * @link https://github.com/jaxon-php/jaxon-core
18
 */
19
20
namespace Jaxon\Traits;
21
22
use Jaxon\Utils\Container;
23
24
trait Sentry
25
{
26
    /**
27
     * Get the Sentry instance
28
     *
29
     * @return \Jaxon\Sentry\Sentry
30
     */
31
    public function sentry()
32
    {
33
        return Container::getInstance()->getSentry();
34
    }
35
36
    /**
37
     * Get the Armada instance
38
     *
39
     * @return \Jaxon\Sentry\Traits\Armada
40
     */
41
    public function armada()
42
    {
43
        return Container::getInstance()->getArmada();
44
    }
45
}
46