Plugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 2
c 3
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\Plugin as PluginModel;
6
7
class Plugin extends AbstractApiCall
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    protected function getType()
13
    {
14
        return 'plugins';
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    protected function createModel()
21
    {
22
        return new PluginModel();
23
    }
24
}
25