TextObject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFilters() 0 8 1
1
<?php
2
3
namespace Chadicus\Marvel\Api\Entities;
4
5
/**
6
 * Represents a Marvel API TextObject Entity
7
 *
8
 * @property-read string $type The string description of the text object (e.g. solicit text, preview text, etc.).
9
 * @property-read string $language A language code denoting which language the text object is written in.
10
 * @property-read string $text The text of the text object.
11
 */
12
class TextObject extends AbstractEntity
13
{
14
    /**
15
     * @see AbstractEntity::getFilters()
16
     *
17
     * @return array
18
     */
19
    final protected function getFilters() : array
20
    {
21
        return [
22
            'type' => ['default' => null, ['string', true, 0]],
23
            'language' => ['default' => null, ['string', true, 0]],
24
            'text' => ['default' => null, ['string', true, 0]],
25
        ];
26
    }
27
}
28