Completed
Push — feat_improve_ci ( 2ab2b1 )
by Marcus
01:20
created

PurchaseOrderGet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
1
<?php
2
/**
3
 * Collmex PurchaseOrderGet Type
4
 *
5
 * @author    Marcus Jaschen <[email protected]>
6
 * @author    René Galle <[email protected]>
7
 * @license   http://www.opensource.org/licenses/mit-license MIT License
8
 * @link      https://github.com/mjaschen/collmex
9
 */
10
11
namespace MarcusJaschen\Collmex\Type;
12
13
/**
14
 * Collmex PurchaseOrderGet Type
15
 *
16
 * @author   Marcus Jaschen <[email protected]>
17
 * @author   René Galle <[email protected]>
18
 * @license  http://www.opensource.org/licenses/mit-license MIT License
19
 * @link     https://github.com/mjaschen/collmex
20
 */
21
class PurchaseOrderGet extends AbstractType implements TypeInterface
22
{
23
    /**
24
     * @var array
25
     */
26
    protected $template = [
27
        'type_identifier'   => 'PURCHASE_ORDER_GET',
28
        'purchase_order_id' => null,
29
        'client_id'         => null,
30
        'supplier_id'       => null,
31
        'product_id'        => null,
32
        'sent_only'         => null,
33
        'return_format'     => null,
34
        'changed_only'      => null,
35
        'system_name'       => null,
36
        'do_not_use_letter' => null,
37
    ];
38
39
    /**
40
     * Formally validates the type data in $data attribute.
41
     *
42
     * @return bool Validation success
43
     */
44
    public function validate()
45
    {
46
        return true;
47
    }
48
}
49