Completed
Push — master ( a5ec56...0143f1 )
by Vitaly
04:57 queued 02:19
created

TableAnalyzer::getVirtualEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
//[PHPCOMPRESSOR(remove,start)]
3
/**
4
 * Created by PhpStorm.
5
 * User: nazarenko
6
 * Date: 29.03.2016
7
 * Time: 11:21
8
 */
9
namespace samsoncms\api\generator\analyzer;
10
11
/**
12
 * Table entities metadata analyzer.
13
 *
14
 * @package samsoncms\api\analyzer
15
 */
16
class TableAnalyzer extends VirtualAnalyzer
17
{
18
    /**
19
     * Get virtual table entities from database by their type.
20
     *
21
     * @param int $type Virtual entity type
22
     *
23
     * @return array Get collection of navigation objects
24
     */
25
    protected function getVirtualEntities($type = 0)
26
    {
27
        return parent::getVirtualEntities(2);
28
    }
29
}
30
//[PHPCOMPRESSOR(remove,end)]
31