Completed
Push — dev-master ( 97a85f...11a8d1 )
by Derek Stephen
07:18
created

Form   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 23
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A init() 0 4 1
1
<?php
2
3
namespace Bone;
4
5
use Bone\I18n\I18nAwareInterface;
6
use Bone\Traits\HasTranslatorTrait;
7
use Del\Form\AbstractForm;
8
use Del\Form\Form as BaseForm;
9
use Zend\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
}