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

PurchaseDelete::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
namespace Resova\Models;
4
5
class PurchaseDelete
6
{
7
    /**
8
     * List of allowed fields
9
     *
10
     * @return array
11
     */
12
    public function allowed(): array
13
    {
14
        return [
15
            'id'      => 'int',
16
            'deleted' => 'bool',
17
        ];
18
    }
19
}
20