Completed
Pull Request — master (#525)
by
unknown
04:25
created

AfterFormCreation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 28
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
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
2
3
namespace Kris\LaravelFormBuilder\Events;
4
5
use Kris\LaravelFormBuilder\Form;
6
7
class AfterFormCreation
8
{
9
    /**
10
     * The form instance.
11
     *
12
     * @var Form
13
     */
14
    protected $form;
15
16
    /**
17
     * Create a new after form creation instance.
18
     *
19
     * @param  Form $form
20
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
21
     */
22
    public function __construct(Form $form) {
23
        $this->form = $form;
24
    }
25
26
    /**
27
     * Return the event's form.
28
     *
29
     * @return Form
30
     */
31
    public function getForm() {
32
        return $this->form;
33
    }
34
}
35