Completed
Push — master ( f90dd6...0a073f )
by WEBEWEB
05:01
created

VideoPicture   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getNr() 0 3 1
A getPicture() 0 3 1
A setNr() 0 4 1
A setPicture() 0 4 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\Model;
13
14
use WBW\Library\Pexels\Traits\IdTrait;
15
16
/**
17
 * Video picture.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Library\Pexels\Model
21
 */
22
class VideoPicture {
23
24
    use IdTrait;
25
26
    /**
27
     * Number.
28
     *
29
     * @var int
30
     */
31
    private $nr;
32
33
    /**
34
     * Picture.
35
     *
36
     * @var string
37
     */
38
    private $picture;
39
40
    /**
41
     * Get the number.
42
     *
43
     * @return int Returns the number.
44
     */
45
    public function getNr() {
46
        return $this->nr;
47
    }
48
49
    /**
50
     * Get the picture.
51
     *
52
     * @return string Returns the picture.
53
     */
54
    public function getPicture() {
55
        return $this->picture;
56
    }
57
58
    /**
59
     * Set the number.
60
     *
61
     * @param int $nr The number.
62
     * @return VideoPicture Returns this video picture.
63
     */
64
    public function setNr($nr) {
65
        $this->nr = $nr;
66
        return $this;
67
    }
68
69
    /**
70
     * Set the picture.
71
     *
72
     * @param string $picture The picture.
73
     * @return VideoPicture Returns this picture.
74
     */
75
    public function setPicture($picture) {
76
        $this->picture = $picture;
77
        return $this;
78
    }
79
}
80