GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Order   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSchema() 0 19 1
1
<?php
2
3
/*
4
 * This file is part of gpupo/cnova-sdk
5
 * Created by Gilmar Pupo <[email protected]>
6
 * For the information of copyright and license you should read the file
7
 * LICENSE which is distributed with this source code.
8
 * Para a informação dos direitos autorais e de licença você deve ler o arquivo
9
 * LICENSE que é distribuído com este código-fonte.
10
 * Para obtener la información de los derechos de autor y la licencia debe leer
11
 * el archivo LICENSE que se distribuye con el código fuente.
12
 * For more information, see <https://opensource.gpupo.com/>.
13
 */
14
15
namespace Gpupo\CnovaSdk\Entity\Order;
16
17
use Gpupo\CommonSdk\Entity\EntityAbstract;
18
use Gpupo\CommonSdk\Entity\EntityInterface;
19
20
/**
21
 * @method string getId()
22
 * @method setId(string $id)
23
 * @method string getOrderMarketplaceId()
24
 * @method setOrderMarketplaceId(string $orderMarketplaceId)
25
 * @method string getPaymentType()
26
 * @method setPaymentType(string $paymentType)
27
 * @method string getPurchasedAt()
28
 * @method setPurchasedAt(string $purchasedAt)
29
 * @method string getApprovedAt()
30
 * @method setApprovedAt(string $approvedAt)
31
 * @method string getStatus()
32
 * @method setStatus(string $status)
33
 * @method float getTotalAmount()
34
 * @method setTotalAmount(float $totalAmount)
35
 * @method float getTotalDiscountAmount()
36
 * @method setTotalDiscountAmount(float $totalDiscountAmount)
37
 * @method Gpupo\CnovaSdk\Entity\Order\Billing\Billing getBilling()
38
 * @method setBilling(Gpupo\CnovaSdk\Entity\Order\Billing\Billing $billing)
39
 * @method Gpupo\CnovaSdk\Entity\Order\Customer\Customer getCustomer()
40
 * @method setCustomer(Gpupo\CnovaSdk\Entity\Order\Customer\Customer $customer)
41
 * @method Gpupo\CnovaSdk\Entity\Order\Freight\Freight getFreight()
42
 * @method setFreight(Gpupo\CnovaSdk\Entity\Order\Freight\Freight $freight)
43
 * @method Gpupo\CnovaSdk\Entity\Order\Items\Items getItems()
44
 * @method setItems(Gpupo\CnovaSdk\Entity\Order\Items\Items $items)
45
 * @method Gpupo\CnovaSdk\Entity\Order\Shipping\Shipping getShipping()
46
 * @method setShipping(Gpupo\CnovaSdk\Entity\Order\Shipping\Shipping $shipping)
47
 * @method Gpupo\CnovaSdk\Entity\Order\Trackings\Trackings getTrackings()
48
 * @method setTrackings(Gpupo\CnovaSdk\Entity\Order\Trackings\Trackings $trackings)
49
 */
50
class Order extends EntityAbstract implements EntityInterface
51
{
52 6
    public function getSchema()
53
    {
54
        return  [
55 6
            'id'                  => 'string',
56
            'orderMarketplaceId'  => 'string',
57
            'paymentType'         => 'string',
58
            'purchasedAt'         => 'string',
59
            'approvedAt'          => 'string',
60
            'status'              => 'string',
61
            'totalAmount'         => 'number',
62
            'totalDiscountAmount' => 'number',
63
            'billing'             => 'object',
64
            'customer'            => 'object',
65
            'freight'             => 'object',
66
            'items'               => 'object',
67
            'shipping'            => 'object',
68
            'trackings'           => 'object',
69
        ];
70
    }
71
}
72