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

Table::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
/**
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
}