Form   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: onysko
5
 * Date: 27.05.2015
6
 * Time: 13:07
7
 */
8
namespace samsoncms\app\security;
9
10
use samsoncms\app\security\tab\Main;
11
use samsoncms\app\security\tab\Rights;
12
use samsonframework\core\RenderInterface;
13
use samsonframework\orm\QueryInterface;
14
use samsonframework\orm\Record;
15
16
/**
17
 * Security group edition form
18
 * @package samsoncms\app\security
19
 */
20
class Form extends \samsoncms\form\Form
21
{
22
    /** @inheritdoc */
23
    public function __construct(RenderInterface $renderer, QueryInterface $query, Record $entity)
24
    {
25
        $this->tabs = array(
26
            // Add main tab
27
            new Main($renderer, $query, $entity),
28
            // Add security group rights edition tab
29
            new Rights($renderer, $query, $entity)
30
        );
31
32
        parent::__construct($renderer, $query, $entity);
33
    }
34
}
35