CollectionResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 10
dl 0
loc 28
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A addMedia() 0 2 1
A getMedias() 0 2 1
A __construct() 0 2 1
1
<?php
2
3
/*
4
 * This file is part of the pexels-library package.
5
 *
6
 * (c) 2021 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Pexels\Response;
13
14
use WBW\Library\Pexels\Model\AbstractMedia;
15
use WBW\Library\Pexels\Traits\Integers\IntegerTotalResultsTrait;
16
use WBW\Library\Pexels\Traits\Strings\StringNextPageTrait;
17
use WBW\Library\Pexels\Traits\Strings\StringPrevPageTrait;
18
use WBW\Library\Traits\Integers\IntegerPageTrait;
19
use WBW\Library\Traits\Integers\IntegerPerPageTrait;
20
use WBW\Library\Traits\Strings\StringIdTrait;
21
22
/**
23
 * Collection response.
24
 *
25
 * @author webeweb <https://github.com/webeweb>
26
 * @package WBW\Library\Pexels\Response
27
 */
28
class CollectionResponse extends AbstractMediaResponse {
29
30
    use IntegerPageTrait;
31
    use IntegerPerPageTrait;
32
    use IntegerTotalResultsTrait;
33
    use StringIdTrait;
34
    use StringNextPageTrait;
35
    use StringPrevPageTrait;
36
37
    /**
38
     * Constructor.
39
     */
40
    public function __construct() {
41
        parent::__construct();
42
    }
43
44
    /**
45
     * {@inheritDoc}
46
     */
47
    public function addMedia(AbstractMedia $media): AbstractMediaResponse {
48
        return parent::addMedia($media);
49
    }
50
51
    /**
52
     * {@inheritDoc}
53
     */
54
    public function getMedias(): array {
55
        return parent::getMedias();
56
    }
57
}
58