Completed
Push — master ( 53e43c...41b088 )
by Vitaly
03:02
created

TableVirtualEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
//[PHPCOMPRESSOR(remove,start)]
3
/**
4
 * Created by PhpStorm.
5
 * User: nazarenko
6
 * Date: 29.03.2016
7
 * Time: 11:11
8
 */
9
namespace samsoncms\api\generator;
10
11
use samsonphp\generator\Generator;
12
13
/**
14
 * Table entity class generator.
15
 *
16
 * @package samsoncms\api\generator
17
 */
18
class TableVirtualEntity extends VirtualEntity
19
{
20
    /**
21
     * Query constructor.
22
     *
23
     * @param Generator $generator
24
     * @param           $metadata
25
     */
26
    public function __construct(Generator $generator, $metadata)
27
    {
28
        parent::__construct($generator, $metadata);
29
30
        $this->className = rtrim($this->className, 'Table') . 'TableEntity';
31
    }
32
}
33
//[PHPCOMPRESSOR(remove,end)]
34