PackIntoMany   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 37
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php namespace BinPacking3d;
2
3
use BinPacking3d\Entity\Request;
4
5
/**
6
 * Class PackIntoMany
7
 * @package BinPacking3d
8
 */
9
class PackIntoMany extends Query implements QueryInterface
10
{
11
12
    private $defaults = [
13
        'images_background_color' => '255,255,255',
14
        'images_bin_border_color' => '59,59,59',
15
        'images_bin_fill_color' => '230,230,230',
16
        'images_item_border_color' => '214,79,79',
17
        'images_item_fill_color' => '177,14,14',
18
        'images_item_back_border_color' => '215,103,103',
19
        'images_sbs_last_item_fill_color' => '99,93,93',
20
        'images_sbs_last_item_border_color' => '145,133,133',
21
        'images_width' => 250,
22
        'images_height' => 250,
23
        'images_source' => 'base64',
24
        'images_sbs' => 1,
25
        'stats' => 1,
26
        'item_coordinates' => 1,
27
        'images_complete' => 1,
28
        'images_separated' => 1,
29
    ];
30
31
    /**
32
     * @param Request $request
33
     * @param array $params
34
     * @param string $region
35
     */
36
    public function __construct(Request $request, $params = [], $region = Query::REGION_GLOBAL)
37
    {
38
        $this->setEndpoint('packIntoMany');
39
        $this->setRequest($request);
40
        $this->setParams(array_merge($this->defaults, $params));
41
42
        parent::__construct($region);
43
    }
44
45
}
46