ExampleApiParameterBag   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFilteredType() 0 7 1
A getFilteredKeys() 0 4 1
1
<?php
2
3
namespace Seblegall\ApiValidatorBundle\Tests\Fixtures\Bundles\ExampleBundle\Api;
4
5
use Seblegall\ApiValidatorBundle\Request\ApiParameterBag;
6
7
class ExampleApiParameterBag extends ApiParameterBag
8
{
9
    public function getFilteredType()
10
    {
11
        return array(
12
            static::PARAMETERS_TYPE_QUERY,
13
            static::PARAMETERS_TYPE_REQUEST,
14
        );
15
    }
16
17
    public function getFilteredKeys()
18
    {
19
        return array('page', 'max', 'sort', 'created_at');
20
    }
21
}
22