Completed
Push — master ( cd9c79...17aa84 )
by Marcus
9s
created

SalesOrderGet::validate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Collmex Customer Order Get Type
4
 *
5
 * @author    Jörg Wolfgram <[email protected]>
6
 * @license   http://www.opensource.org/licenses/mit-license MIT License
7
 * @link      https://github.com/mjaschen/collmex
8
 */
9
10
namespace MarcusJaschen\Collmex\Type;
11
12
/**
13
 * Collmex Customer Order Get Type
14
 *
15
 * @author   Jörg Wolfgram <[email protected]>
16
 * @license  http://www.opensource.org/licenses/mit-license MIT License
17
 * @link     https://github.com/mjaschen/collmex
18
 */
19
class SalesOrderGet extends AbstractType implements TypeInterface
20
{
21
    const FORMAT_CSV = 0;
22
    const FORMAT_ZIP = 1;
23
24
    const FILTER_ON     = 1;    // useable for 'only_changed' and 'only_created_by_system'
25
    const FILTER_OFF    = 0;    // useable for 'only_changed' and 'only_created_by_system'
26
27
    const WITH_LETTER_PAPER = 0;
28
    const NO_LETTER_PAPER   = 1;
29
30
    /**
31
     * @var array
32
     */
33
    protected $template = array(
34
        'type_identifier'           => 'SALES_ORDER_GET',
35
        'order_id'                  => null,
36
        'client_id'                 => null,
37
        'customer_id'               => null,
38
        'order_date_start'          => null,
39
        'order_date_end'            => null,
40
        'customer_order_id'         => null,
41
        'format'                    => null,
42
        'only_changed'              => null,
43
        'system_name'               => null,    // 10
44
        'only_created_by_system'    => null,
45
        'letter_paper'              => null,
46
    );
47
48
    /**
49
     * Formally validates the type data in $data attribute.
50
     *
51
     * @return bool Validation success
52
     */
53
    public function validate()
54
    {
55
        return true;
56
    }
57
}
58