Completed
Push — master ( 909b9e...ebc878 )
by Gilmar
21:39
created

PriceSchedule::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of gpupo/netshoes-sdk
5
 * Created by Gilmar Pupo <[email protected]>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 * For more information, see <http://www.g1mr.com/>.
9
 */
10
11
namespace Gpupo\NetshoesSdk\Entity\Product\Sku;
12
13
use Gpupo\CommonSdk\Entity\EntityAbstract;
14
use Gpupo\CommonSdk\Entity\EntityInterface;
15
16
class PriceSchedule extends EntityAbstract implements EntityInterface
17
{
18 7
    public function getSchema()
19
    {
20
        return  [
21 7
            'priceFrom' => 'number',
22
            'priceTo' => 'number',
23
            'dateInit' => 'number',
24
            'dateEnd' => 'number',
25
        ];
26
    }
27
28 7
    protected function setUp()
29
    {
30 7
        $this->setOptionalSchema(['priceFrom', 'dateInit', 'dateEnd']);
31 7
    }
32
    
33
}
34