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

AfterFormCreation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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