VideoPicture::getPicture()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 2
ccs 0
cts 0
cp 0
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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\Model;
13
14
use WBW\Library\Traits\Integers\IntegerIdTrait;
15
use WBW\Library\Traits\Strings\StringRawDataTrait;
16
17
/**
18
 * Video picture.
19
 *
20
 * @author webeweb <https://github.com/webeweb>
21
 * @package WBW\Library\Pexels\Model
22
 */
23
class VideoPicture {
24 1
25
    use IntegerIdTrait {
26
        setId as public;
27
    }
28
    use StringRawDataTrait;
29
30
    /**
31
     * Number.
32
     *
33
     * @var int|null
34
     */
35
    private $nr;
36
37
    /**
38
     * Picture.
39
     *
40
     * @var string|null
41
     */
42
    private $picture;
43
44
    /**
45
     * Get the number.
46
     *
47 15
     * @return int|null Returns the number.
48 15
     */
49
    public function getNr(): ?int {
50
        return $this->nr;
51
    }
52
53
    /**
54
     * Get the picture.
55
     *
56 15
     * @return string|null Returns the picture.
57 15
     */
58
    public function getPicture(): ?string {
59
        return $this->picture;
60
    }
61
62
    /**
63
     * Set the number.
64
     *
65
     * @param int|null $nr The number.
66 25
     * @return VideoPicture Returns this video picture.
67 25
     */
68 25
    public function setNr(?int $nr): VideoPicture {
69
        $this->nr = $nr;
70
        return $this;
71
    }
72
73
    /**
74
     * Set the picture.
75
     *
76
     * @param string|null $picture The picture.
77 25
     * @return VideoPicture Returns this picture.
78 25
     */
79 25
    public function setPicture(?string $picture): VideoPicture {
80
        $this->picture = $picture;
81
        return $this;
82
    }
83
}
84