Completed
Push — master ( 479fbe...e1e56a )
by WEBEWEB
01:15
created

Photo::setPhotographerId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
/**
15
 * Photo.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Library\Pexels\Model
19
 */
20
class Photo extends AbstractMedia {
21
22
    /**
23
     * Photographer.
24
     *
25
     * @var string
26
     */
27
    private $photographer;
28
29
    /**
30
     * Photographer id.
31
     *
32
     * @var string
33
     */
34
    private $photographerId;
35
36
    /**
37
     * Photographer URL.
38
     *
39
     * @var string
40
     */
41
    private $photographerUrl;
42
43
    /**
44
     * Source.
45
     *
46
     * @var Source
47
     */
48
    private $src;
49
50
    /**
51
     * Get the photographer.
52
     *
53
     * @return string Returns the photographer.
54
     */
55
    public function getPhotographer() {
56
        return $this->photographer;
57
    }
58
59
    /**
60
     * Get the photographer id.
61
     *
62
     * @return string Returns the photographer id.
63
     */
64
    public function getPhotographerId() {
65
        return $this->photographerId;
66
    }
67
68
    /**
69
     * Get the photographer URL.
70
     *
71
     * @return string Returns the photographer URL.
72
     */
73
    public function getPhotographerUrl() {
74
        return $this->photographerUrl;
75
    }
76
77
    /**
78
     * Get the source.
79
     *
80
     * @return Source Returns the source.
81
     */
82
    public function getSrc() {
83
        return $this->src;
84
    }
85
86
    /**
87
     * Set the photographer.
88
     *
89
     * @param string $photographer The photographer.
90
     * @return Photo Returns this photo.
91
     */
92
    public function setPhotographer($photographer) {
93
        $this->photographer = $photographer;
94
        return $this;
95
    }
96
97
    /**
98
     * Set the photographer id.
99
     *
100
     * @param string $photographerId The photographer id.
101
     * @return Photo Returns this photo.
102
     */
103
    public function setPhotographerId($photographerId) {
104
        $this->photographerId = $photographerId;
105
        return $this;
106
    }
107
108
    /**
109
     * Set the photographer URL.
110
     *
111
     * @param string $photographerUrl The photographer URL.
112
     * @return Photo Returns this photo.
113
     */
114
    public function setPhotographerUrl($photographerUrl) {
115
        $this->photographerUrl = $photographerUrl;
116
        return $this;
117
    }
118
119
    /**
120
     * Set the source.
121
     *
122
     * @param Source|null $src The source.
123
     * @return Photo Returns this photo.
124
     */
125
    public function setSrc(Source $src = null) {
126
        $this->src = $src;
127
        return $this;
128
    }
129
130
}
131