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

StockChangeGet::validate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
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 StockChangeGet 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 $client_id
14
 * @property $product_id
15
 * @property $date_from
16
 * @property $date_to
17
 * @property $customer_id
18
 * @property $supplier_id
19
 * @property $include_canceled
20
 * @property $changed_only
21
 * @property $system_name
22
 */
23 View Code Duplication
class StockChangeGet extends AbstractType implements TypeInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
24
{
25
    /**
26
     * @var array
27
     */
28
    protected $template = [
29
        'type_identifier'  => 'STOCK_CHANGE_GET', // 1
30
        'client_id'        => null,
31
        'product_id'       => null,
32
        'date_from'        => null,
33
        'date_to'          => null, // 5
34
        'customer_id'      => null,
35
        'supplier_id'      => null,
36
        'include_canceled' => null,
37
        'changed_only'     => null,
38
        'system_name'      => null, // 10
39
    ];
40
41
    /**
42
     * Formally validates the type data in $data attribute.
43
     *
44
     * @return bool Validation success
45
     */
46
    public function validate()
47
    {
48
        return true;
49
    }
50
}
51