Completed
Pull Request — master (#1)
by Nic
03:25
created

ProductWishListForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
class ProductWishListForm extends Form
4
{
5
6 1
    public function __construct(Controller $controller, $name)
7
    {
8 1
        $wishList = Injector::inst()->get('ProductWishList');
9
10 1
        $fields = $wishList->getFrontEndFields();
11 1
        $actions = $wishList->getFrontEndActions();
12 1
        $validator = $wishList->getFrontEndRequiredFields();
13
14 1
        parent::__construct($controller, $name, $fields, $actions, $validator);
15 1
    }
16
17
}