Completed
Push — master ( 7a0906...3ff6f8 )
by Ryan
02:30
created

SettingsWereSaved   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getNamespace() 0 4 1
1
<?php namespace Anomaly\SettingsModule\Setting\Event;
2
3
/**
4
 * Class SettingsWereSaved
5
 *
6
 * @link          http://pyrocms.com/
7
 * @author        PyroCMS, Inc. <[email protected]>
8
 * @author        Ryan Thompson <[email protected]>
9
 * @package       Anomaly\SettingsModule\Setting\Event
10
 */
11
class SettingsWereSaved
12
{
13
14
    /**
15
     * The setting's namespace.
16
     *
17
     * @var string
18
     */
19
    protected $namespace;
20
21
    /**
22
     * Create a new SettingsWereSaved instance.
23
     *
24
     * @param string $namespace
25
     */
26
    public function __construct($namespace)
27
    {
28
        $this->namespace = $namespace;
29
    }
30
31
    /**
32
     * Get the namespace.
33
     *
34
     * @return string
35
     */
36
    public function getNamespace()
37
    {
38
        return $this->namespace;
39
    }
40
}
41