Completed
Push — master ( 604a2f...9beb61 )
by Anton
10s
created

Crud::prepareParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 8
ccs 4
cts 4
cp 1
c 0
b 0
f 0
cc 1
eloc 5
nop 0
crap 1
rs 9.4285
1
<?php
2
/**
3
 * Bluz Framework Component
4
 *
5
 * @copyright Bluz PHP Team
6
 * @link      https://github.com/bluzphp/framework
7
 */
8
9
declare(strict_types=1);
10
11
namespace Bluz\Controller\Mapper;
12
13
/**
14
 * Crud
15
 *
16
 * @package  Bluz\Rest
17
 * @author   Anton Shevchuk
18
 */
19
class Crud extends AbstractMapper
20
{
21
    /**
22
     * Prepare params
23
     *
24
     * @return array
25
     */
26 6
    protected function prepareParams(): array
27
    {
28
        return [
29 6
            'crud' => $this->crud,
30 6
            'primary' => $this->primary,
31 6
            'data' => $this->data
32
        ];
33
    }
34
}
35