Passed
Push — master ( 6c42be...776013 )
by Igor
02:03
created

ProductRemovedRequestEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequired() 0 5 1
1
<?php
2
/**
3
 * PHP version 5.4 and 7
4
 *
5
 * @package   Payever\Products
6
 * @author    Hennadii.Shymanskyi <[email protected]>
7
 * @copyright 2017-2019 payever GmbH
8
 * @license   MIT <https://opensource.org/licenses/MIT>
9
 */
10
11
namespace Payever\ExternalIntegration\Products\Http\RequestEntity;
12
13
use Payever\ExternalIntegration\Core\Http\RequestEntity;
14
15
/**
16
 * PHP version 5.4 and 7
17
 *
18
 * @package   Payever\Products
19
 * @author    payever GmbH <[email protected]>
20
 * @author    Hennadii.Shymanskyi <[email protected]>
21
 * @copyright 2017-2019 payever GmbH
22
 * @license   MIT <https://opensource.org/licenses/MIT>
23
 *
24
 * When sending entity to payever at least one of the following MUST be filled in: sku, uuid
25
 *
26
 * @method string getExternalId()
27
 * @method string getUuid()
28
 * @method string getSku()
29
 *
30
 * @method self setExternalId(string $externalId)
31
 * @method self setSku(string $sku)
32
 * @method self setUuid(string $uuid)
33
 */
34
class ProductRemovedRequestEntity extends RequestEntity
35
{
36
    /** @var string */
37
    protected $externalId;
38
39
    /** @var array */
40
    protected $uuid;
41
42
    /** @var string */
43
    protected $sku;
44
45
    /**
46
     * @return array
47
     */
48
    public function getRequired()
49
    {
50
        return array(
51
            'externalId',
52
            'sku',
53
        );
54
    }
55
}
56