BasketDelete   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A allowed() 0 5 1
1
<?php
2
3
4
namespace Resova\Models;
5
6
7
class BasketDelete
8
{
9
    /**
10
     * List of allowed fields
11
     *
12
     * @codeCoverageIgnore
13
     * @return array
14
     */
15
    public function allowed(): array
16
    {
17
        return [
18
            'id'      => 'int',
19
            'deleted' => 'bool',
20
        ];
21
    }
22
}
23