Completed
Pull Request — master (#427)
by Anton
07:08 queued 04:05
created

Crud   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 4
cts 4
cp 1
c 0
b 0
f 0
rs 10
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareParams() 0 8 1
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