|
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 URL. |
|
31
|
|
|
* |
|
32
|
|
|
* @var string |
|
33
|
|
|
*/ |
|
34
|
|
|
private $photographerUrl; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Source. |
|
38
|
|
|
* |
|
39
|
|
|
* @var Source |
|
40
|
|
|
*/ |
|
41
|
|
|
private $src; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Get the photographer. |
|
45
|
|
|
* |
|
46
|
|
|
* @return string Returns the photographer. |
|
47
|
|
|
*/ |
|
48
|
|
|
public function getPhotographer() { |
|
49
|
|
|
return $this->photographer; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
/** |
|
53
|
|
|
* Get the photographer URL. |
|
54
|
|
|
* |
|
55
|
|
|
* @return string Returns the photographer URL. |
|
56
|
|
|
*/ |
|
57
|
|
|
public function getPhotographerUrl() { |
|
58
|
|
|
return $this->photographerUrl; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* Get the source. |
|
63
|
|
|
* |
|
64
|
|
|
* @return Source Returns the source. |
|
65
|
|
|
*/ |
|
66
|
|
|
public function getSrc() { |
|
67
|
|
|
return $this->src; |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
/** |
|
71
|
|
|
* Set the photographer. |
|
72
|
|
|
* |
|
73
|
|
|
* @param string $photographer The photographer. |
|
74
|
|
|
* @return Photo Returns this photo. |
|
75
|
|
|
*/ |
|
76
|
|
|
public function setPhotographer($photographer) { |
|
77
|
|
|
$this->photographer = $photographer; |
|
78
|
|
|
return $this; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* Set the photographer URL. |
|
83
|
|
|
* |
|
84
|
|
|
* @param string $photographerUrl The photographer URL. |
|
85
|
|
|
* @return Photo Returns this photo. |
|
86
|
|
|
*/ |
|
87
|
|
|
public function setPhotographerUrl($photographerUrl) { |
|
88
|
|
|
$this->photographerUrl = $photographerUrl; |
|
89
|
|
|
return $this; |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* Set the source. |
|
94
|
|
|
* |
|
95
|
|
|
* @param Source|null $src The source. |
|
96
|
|
|
* @return Photo Returns this photo. |
|
97
|
|
|
*/ |
|
98
|
|
|
public function setSrc(Source $src = null) { |
|
99
|
|
|
$this->src = $src; |
|
100
|
|
|
return $this; |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
} |
|
104
|
|
|
|