Theme   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 4
Bugs 0 Features 2
Metric Value
wmc 2
c 4
b 0
f 2
lcom 0
cbo 2
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A createModel() 0 4 1
1
<?php
2
3
namespace WPApi;
4
5
use WPApi\Model\Theme as ThemeModel;
6
7
class Theme extends AbstractApiCall
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    protected function getType()
13
    {
14
        return 'themes';
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    protected function createModel()
21
    {
22
        return new ThemeModel();
23
    }
24
}
25