Completed
Push — master ( 4d4acb...f95c98 )
by Kristijan
12s
created

AfterFormCreation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getForm() 0 3 1
1
<?php namespace Kris\LaravelFormBuilder\Events;
2
3
use Kris\LaravelFormBuilder\Form;
4
5
class AfterFormCreation {
6
7
    /**
8
     * @var $form Form
9
     */
10
    protected $form;
11
12
    /**
13
     * Create a new event instance.
14
     */
15
    public function __construct(Form $form) {
16
        $this->form = $form;
17
    }
18
19
    /**
20
     * Return the event's form.
21
     */
22
    public function getForm() {
23
        return $this->form;
24
    }
25
26
}
27