BigintGuesser::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Knp\FriendlyContexts\Guesser;
4
5
class BigintGuesser extends IntGuesser implements GuesserInterface
6
{
7
    public function supports(array $mapping)
8
    {
9
        $mapping = array_merge([ 'type' => null ], $mapping);
10
11
        return $mapping['type'] === 'bigint';
12
    }
13
14
    public function fake(array $mapping)
15
    {
16
        return current($this->fakers)->fake('randomNumber');
17
    }
18
19
    public function getName()
20
    {
21
        return 'bigint';
22
    }
23
}
24