NullInformation::getChoices()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
namespace TildBJ\Seeder\Information;
3
4
/**
5
 * Class DefaultInformation
6
 *
7
 * @package TildBJ\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