Price::getFilters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Chadicus\Marvel\Api\Entities;
4
5
use DominionEnterprises\Filterer;
6
use DominionEnterprises\Util;
7
8
/**
9
 * Represents a ComicPrice entity type within the Marvel API.
10
 *
11
 * @property-read string type A description of the price (e.g. print price, digital price).,
12
 * @property-read float price The price (all prices in USD).
13
 */
14
class Price extends AbstractEntity
15
{
16
    /**
17
     * @see AbstractEntity::getFilters()
18
     *
19
     * @return array
20
     */
21
    final protected function getFilters() : array
22
    {
23
        return [
24
            'type' => ['default' => null, ['string', true]],
25
            'price' => ['default' => null, ['float', true, null, null, true]]
26
        ];
27
    }
28
}
29