Completed
Pull Request — master (#1)
by Nic
07:00
created

ProductWishListForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
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
    public function __construct(Controller $controller, $name)
7
    {
8
        $wishList = Injector::inst()->get('ProductWishList');
9
10
        $fields = $wishList->getFrontEndFields();
11
        $actions = $wishList->getFrontEndActions();
12
        $validator = $wishList->getFrontEndRequiredFields();
13
14
        parent::__construct($controller, $name, $fields, $actions, $validator);
15
    }
16
17
}