Form   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 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\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