Form::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 3
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