StringNextPageTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setNextPage() 0 3 1
A getNextPage() 0 2 1
1
<?php
2
3
/*
4
 * This file is part of the pexels-library package.
5
 *
6
 * (c) 2019 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\Traits\Strings;
13
14
/**
15
 * String next page trait.
16
 *
17
 * @author webeweb <https://github.com/webeweb>
18
 * @package WBW\Library\Pexels\Traits\Strings
19
 */
20
trait StringNextPageTrait {
21
22
    /**
23
     * Next page.
24
     *
25
     * @var string|null
26
     */
27
    private $nextPage;
28
29
    /**
30
     * Get the next page.
31
     *
32
     * @return string|null Returns the next page.
33
     */
34
    public function getNextPage(): ?string {
35
        return $this->nextPage;
36
    }
37
38
    /**
39
     * Set the next page.
40
     *
41
     * @param string|null $nextPage The next page.
42
     * @return self Returns this instance.
43
     */
44
    public function setNextPage(?string $nextPage): self {
45
        $this->nextPage = $nextPage;
46
        return $this;
47
    }
48
}
49