Form::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Bone\I18n;
4
5
use Bone\I18n\I18nAwareInterface;
6
use Bone\I18n\Traits\HasTranslatorTrait;
7
use Del\Form\AbstractForm;
8
use Del\Form\Form as BaseForm;
9
use Laminas\I18n\Translator\Translator;
10
11
class Form extends AbstractForm implements I18nAwareInterface
12
{
13
    use HasTranslatorTrait;
14
15
    /**
16
     * Form constructor.
17
     * @param string $name
18
     */
19 1
    public function __construct($name, Translator $translator)
20
    {
21 1
        $this->setTranslator($translator);
22 1
        parent::__construct($name);
23 1
    }
24
25
    /**
26
     *  Extend this form an' ye can add yer form elements here
27
     * @see https://github.com/delboy1978uk/form
28
     */
29 1
    public function init()
30
    {
31
32
    }
33
}