Completed
Push — master ( b74cd0...088e4f )
by Dennis
11:47
created

NullInformation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultValue() 0 4 1
A getChoices() 0 4 1
A getType() 0 4 1
1
<?php
2
namespace Dennis\Seeder\Information;
3
4
/**
5
 * Class DefaultInformation
6
 *
7
 * @package Dennis\Seeder\Information\DefaultInformation
8
 */
9
class NullInformation extends AbstractInformation
10
{
11
    /**
12
     * @return int
13
     */
14
    public function getDefaultValue()
15
    {
16
        return 0;
17
    }
18
19
    /**
20
     * @return array
0 ignored issues
show
Documentation introduced by
Should the return type not be array|null? Also, consider making the array more specific, something like array<String>, or String[].

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

If the return type contains the type array, this check recommends the use of a more specific type like String[] or array<String>.

Loading history...
21
     */
22
    public function getChoices()
23
    {
24
        return null;
25
    }
26
27
    /**
28
     * @return int
29
     */
30
    public function getType()
31
    {
32
        return 0;
33
    }
34
}
35