Form::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
c 2
b 0
f 2
dl 0
loc 9
rs 9.6666
cc 1
eloc 4
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\user\form;
9
10
use samsoncms\app\user\form\tab\Entity;
11
use samsonframework\core\RenderInterface;
12
use samsonframework\orm\QueryInterface;
13
use samsonframework\orm\Record;
14
15
/**
16
 * User SamsonCMS application form
17
 * @package samsoncms\app\user\form
18
 */
19
class Form extends \samsoncms\form\Form
20
{
21
    /** @inheritdoc */
22
    public function __construct(RenderInterface $renderer, QueryInterface $query, Record $entity)
23
    {
24
        // Add user entity tab
25
        $this->tabs = array(
26
            new Entity($renderer, $query, $entity)
27
        );
28
29
        parent::__construct($renderer, $query, $entity);
30
    }
31
}
32