Form   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A init() 0 2 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
}