Completed
Pull Request — master (#95)
by
unknown
20:25
created

ShipmentOrdersGet::validate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace MarcusJaschen\Collmex\Type;
3
4
/**
5
 * Collmex ShipmentOrdersGet Type
6
 *
7
 * @author   Marcus Jaschen <[email protected]>
8
 * @author   René Galle <[email protected]>
9
 * @license  http://www.opensource.org/licenses/mit-license MIT License
10
 * @link     https://github.com/mjaschen/collmex
11
 *
12
 * @property $type_identifier
13
 * @property $delivery_id
14
 * @property $client_id
15
 * @property $customer_id
16
 * @property $shipment_handover_id
17
 * @property $shipment_type
18
 * @property $handover_required
19
 * @property $delivery_date_from
20
 * @property $delivery_date_to
21
 * @property $shipment_date
22
 */
23
class ShipmentOrdersGet extends AbstractType implements TypeInterface
24
{
25
    const SHIPMENT_HANDOVER_ID_UNIVERSAL_CSV = 1;
26
    const SHIPMENT_HANDOVER_ID_DHL_ONLINE_FRANKING = 2;
27
    const SHIPMENT_HANDOVER_ID_DHL_INTRASHIP = 3;
28
    const SHIPMENT_HANDOVER_ID_FULFILLMENT_SERVICE_PROVIDER = 4;
29
    const SHIPMENT_HANDOVER_ID_YOUR_GLS = 5;
30
    const SHIPMENT_HANDOVER_ID_HERMES = 6;
31
    const SHIPMENT_HANDOVER_ID_AMAZON_FBA = 7;
32
    const SHIPMENT_HANDOVER_ID_GERMAN_POST_INTERNET_STAMP = 8;
33
    const SHIPMENT_HANDOVER_ID_MY_DPD_BUSINESS = 9;
34
    const SHIPMENT_HANDOVER_ID_DHL_BUSINESS_CLIENT_PORTAL = 10;
35
36
    /**
37
     * @var array
38
     */
39
    protected $template = [
40
        'type_identifier'      => 'SHIPMENT_ORDERS_GET',
41
        'delivery_id'          => null,
42
        'client_id'            => null,
43
        'customer_id'          => null,
44
        'shipment_handover_id' => null,
45
        'shipment_type'        => null,
46
        'handover_required'    => null,
47
        'delivery_date_from'   => null,
48
        'delivery_date_to'     => null,
49
        'shipment_date'        => null,
50
    ];
51
52
    /**
53
     * Formally validates the type data in $data attribute.
54
     *
55
     * @return bool Validation success
56
     */
57
    public function validate()
58
    {
59
        return true;
60
    }
61
}
62