DataTransporter
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 25
c 0
b 0
f 0
1
<?php
2
3
namespace App\Ship\Transporters;
4
5
use App\Ship\Parents\Transporters\Transporter;
6
7
/**
8
 * Class DataTransporter
9
 *
10
 * @author Johannes Schobel <[email protected]>
11
 */
12
class DataTransporter extends Transporter
13
{
14
    /*
15
     * README FIRST and be sure to fully understand this concept!
16
     * This is the default transporter that is used, if no other one is specified in the REQUEST class itself. This Transporter,
17
     * in turn, makes no restrictions to the properties; i.e., it allows everything to be written. This may be ok for
18
     * some use-cases, however, you may also want to create your own, more specifically tailored Transporters.
19
     */
20
21
    /**
22
     * @var array
23
     */
24
    protected $schema = [
25
        'type' => 'object',
26
        'properties' => [
27
            'additionalProperties' => true,
28
        ],
29
        'required' => [  // defined Transporter required fields ['first_name', 'last_name'],
30
31
        ],
32
        'default' => [
33
//            'foo' => 'bar',
34
        ]
35
    ];
36
}
37