Url::getFilters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
dl 7
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
/**
6
 * Represents a Marvel API Url Entity
7
 *
8
 * @property-read string $type A text identifier for the URL.
9
 * @property-read string $url A full URL (including scheme, domain, and path).
10
 */
11 View Code Duplication
class Url extends AbstractEntity
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
12
{
13
    /**
14
     * @see AbstractEntity::getFilters()
15
     *
16
     * @return array
17
     */
18
    final protected function getFilters() : array
19
    {
20
        return [
21
            'type' => ['default' => null, ['string', true, 0]],
22
            'url' => ['default' => null, ['string', true, 0]],
23
        ];
24
    }
25
}
26