|
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
|
|
|
|