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

TableAnalyzer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getVirtualEntities() 0 4 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