Completed
Push — master ( 92266b...24ccf8 )
by Derek Stephen
51s
created

Form::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
    public function __construct($name, Translator $translator)
20
    {
21
        $this->setTranslator($translator);
22
        parent::__construct($name);
23
    }
24
25
    /**
26
     *  Extend this form an' ye can add yer form elements here
27
     * @see https://github.com/delboy1978uk/form
28
     */
29
    public function init()
30
    {
31
32
    }
33
}