Completed
Push — master ( fd3b1c...59d473 )
by Marcus
01:44
created

InvoiceOutputSet   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
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 Invoice Get Type
4
 *
5
 * @author    Marcus Jaschen <[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 Invoice Get Type
14
 *
15
 * @author   Marcus Jaschen <[email protected]>
16
 * @license  http://www.opensource.org/licenses/mit-license MIT License
17
 * @link     https://github.com/mjaschen/collmex
18
 *
19
 * @property string $type_identifier
20
 * @property string $invoice_id
21
 * @property int $output_medium
22
 */
23
class InvoiceOutputSet extends AbstractType implements TypeInterface
24
{
25
    /**
26
     * @var array
27
     */
28
    protected $template = [
29
        'type_identifier' => 'INVOICE_OUTPUT_SET',
30
        'invoice_id'      => null,
31
        'output_medium'   => null,
32
    ];
33
34
    /**
35
     * Formally validates the type data in $data attribute.
36
     *
37
     * @return bool Validation success
38
     */
39
    public function validate()
40
    {
41
        return true;
42
    }
43
}
44