Completed
Push — master ( fb1da0...84ba9e )
by Nic
10s
created

ProductWishListForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
/**
4
 * Class ProductWishListForm
5
 */
6
class ProductWishListForm extends Form
7
{
8
9
    /**
10
     * ProductWishListForm constructor.
11
     *
12
     * @param Controller $controller
13
     * @param string $name
14
     */
15
    public function __construct(Controller $controller, $name)
16
    {
17
        $wishList = Injector::inst()->get('ProductWishList');
18
19
        $fields = $wishList->getFrontEndFields();
20
        $actions = $wishList->getFrontEndActions();
21
        $validator = $wishList->getFrontEndRequiredFields();
22
23
        parent::__construct($controller, $name, $fields, $actions, $validator);
24
    }
25
26
}