Completed
Push — master ( f8e0b8...f3882c )
by Ryan
02:52
created

SettingsWereSaved   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
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 getBuilder() 0 4 1
1
<?php namespace Anomaly\SettingsModule\Setting\Event;
2
3
use Anomaly\SettingsModule\Setting\Form\SettingFormBuilder;
4
5
/**
6
 * Class SettingsWereSaved
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 * @package       Anomaly\SettingsModule\Setting\Event
12
 */
13
class SettingsWereSaved
14
{
15
16
    /**
17
     * The form builder.
18
     *
19
     * @var SettingFormBuilder
20
     */
21
    protected $builder;
22
23
    /**
24
     * Create a new SettingsWereSaved instance.
25
     *
26
     * @param SettingFormBuilder $builder
27
     */
28
    public function __construct(SettingFormBuilder $builder)
29
    {
30
        $this->builder = $builder;
31
    }
32
33
    /**
34
     * Get the builder.
35
     *
36
     * @return SettingFormBuilder
37
     */
38
    public function getBuilder()
39
    {
40
        return $this->builder;
41
    }
42
}
43