Passed
Push — master ( 3a8b1f...98e6d6 )
by Curtis
17:52 queued 13:46
created

NoteForm   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 19
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
A edit() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Forms\Builders;
4
5
use App\note;
6
use LaravelEnso\Forms\app\Services\Form;
7
8
class NoteForm
9
{
10
    private const TemplatePath = __DIR__.'/../Templates/note.json';
11
12
    private $form;
13
14
    public function __construct()
15
    {
16
        $this->form = new Form(self::TemplatePath);
17
    }
18
19
    public function create()
20
    {
21
        return $this->form->create();
22
    }
23
24
    public function edit(note $note)
25
    {
26
        return $this->form->edit($note);
27
    }
28
}
29