Completed
Push — master ( e96a0c...fa76da )
by Mr
01:59
created

BasketDelete::allowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
4
namespace Resova\Models;
5
6
7
class BasketDelete
8
{
9
    /**
10
     * List of allowed fields
11
     *
12
     * @return array
13
     */
14
    public function allowed(): array
15
    {
16
        return [
17
            'id'      => 'int',
18
            'deleted' => 'bool',
19
        ];
20
    }
21
}
22