ResourceList   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFilters() 0 9 1
1
<?php
2
3
namespace Chadicus\Marvel\Api\Entities;
4
5
/**
6
 * Represents a Marvel API ResourceList Entity
7
 *
8
 * @property-read integer $available The number of total available resources in this list
9
 * @property-read integer $returned The number of resources returned in this resource list (up to 20).
10
 * @property-read string $collectionURI The path to the list of full view representations of the items in this
11
 *                                      resource list.
12
 * @property-read Summary[] $items A list of summary views of the items in this resource list.
13
 */
14
class ResourceList extends AbstractEntity
15
{
16
    /**
17
     * @see AbstractEntity::getFilters()
18
     *
19
     * @return array
20
     */
21
    final protected function getFilters() : array
22
    {
23
        return [
24
            'available' => [['int', true]],
25
            'returned' => [['int', true]],
26
            'collectionURI' => [['string', true, 0]],
27
            'items' => ['default' => [], ['summaries']],
28
        ];
29
    }
30
}
31