DataProviderFake   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A bar() 0 4 1
A getFoobar() 0 4 1
A getFoobarBaz() 0 4 1
A getTemplateVars() 0 8 1
1
<?php
2
3
namespace BestIt\KitchensinkBundle\Tests;
4
5
use BestIt\KitchensinkBundle\DataProviderInterface;
6
7
/**
8
 * Fale class for tests.
9
 * @author blange <[email protected]>
10
 * @category Tests
11
 * @package BestIt\KitchensinkBundle
12
 * @version $id4
13
 */
14
class DataProviderFake implements DataProviderInterface
15
{
16
    /**
17
     * Fake direct getter.
18
     * @return string
19
     */
20
    public function bar(): string
21
    {
22
        return __METHOD__;
23
    }
24
25
    /**
26
     * Fake getter method.
27
     * @return string
28
     */
29
    public function getFoobar()
30
    {
31
        return __METHOD__;
32
    }
33
34
    /**
35
     * Fake getter method with snake case.
36
     * @return string
37
     */
38
    public function getFoobarBaz()
39
    {
40
        return __METHOD__;
41
    }
42
43
    /**
44
     * Returns an array with template vars (and optional their getters) to fill the kitchensink template.
45
     * @return array
46
     */
47
    public function getTemplateVars(): array
48
    {
49
        return [
50
            'foo' => 'bar',
51
            'foobar',
52
            'foobarBaz'
53
        ];
54
    }
55
}
56