Completed
Pull Request — master (#57)
by Olexandr
02:41
created

Table   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
/**
3
 * Created by PhpStorm.
4
 * User: nazarenko
5
 * Date: 29.03.2016
6
 * Time: 11:21
7
 */
8
namespace samsoncms\api\generator\analyzer;
9
10
/**
11
 * Table entities metadata analyzer.
12
 *
13
 * @package samsoncms\api\analyzer
14
 */
15
class Table extends Virtual
16
{
17
    /**
18
     * Get virtual table entities from database by their type.
19
     *
20
     * @param int $type Virtual entity type
21
     *
22
     * @return array Get collection of navigation objects
23
     */
24
    protected function getVirtualEntities($type = 0)
25
    {
26
        return parent::getVirtualEntities(2);
27
    }
28
}