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

NullInformation::getDefaultValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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