Summary::getFilters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
namespace Chadicus\Marvel\Api\Entities;
3
4
use DominionEnterprises\Util;
5
use DominionEnterprises\Filterer;
6
7
/**
8
 * Represents the Summary entity of the Marvel API.
9
 *
10
 * @property-read string $resourceURI The path to the individual API entity
11
 * @property-read string $name The canonical name of the API entity
12
 * @property-read string $type The type of the API entity (ex. interior or cover for story)
13
 * @property-read string $role The role of the API entity (ex. writer or artis for creator)
14
 */
15
class Summary extends AbstractEntity
16
{
17
    /**
18
     * @see AbstractEntity::getFilters()
19
     *
20
     * @return array
21
     */
22
    final protected function getFilters() : array
23
    {
24
        return [
25
            'resourceURI' => ['default' => null, ['string', true]],
26
            'name' => ['default' => null, ['string', true, 0]],
27
            'type' => ['default' => null, ['string', true, 0]],
28
            'role' => ['default' => null, ['string', true, 0]],
29
        ];
30
    }
31
}
32