Card::parametersValidationRules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Gregoriohc\Moneta\Common\Models;
4
5
class Card extends PaymentMethod
6
{
7
    /**
8
     * @return array
9
     */
10 6
    public function parametersValidationRules()
11
    {
12
        return [
13 6
            'full_name' => 'required|string',
14
            'number' => 'required|string',
15
            'expiration_month' => 'required|string|size:2',
16
            'expiration_year' => 'required|string|size:4',
17
            'verification_value' => 'required|string|min:3|max:4',
18
        ];
19
    }
20
}