1: <?php
2:
3: namespace SellerLabs\Snagshout\Model;
4:
5: class Image
6: {
7: /**
8: * @var string
9: */
10: protected $url;
11: /**
12: * @var string
13: */
14: protected $title;
15: /**
16: * @var string
17: */
18: protected $type;
19: /**
20: * @var int
21: */
22: protected $id;
23: /**
24: * @var int
25: */
26: protected $sort;
27: /**
28: * @var bool
29: */
30: protected $featured;
31: /**
32: * @var ImageMetadata
33: */
34: protected $metadata;
35: /**
36: * @return string
37: */
38: public function getUrl()
39: {
40: return $this->url;
41: }
42: /**
43: * @param string $url
44: *
45: * @return self
46: */
47: public function setUrl($url = null)
48: {
49: $this->url = $url;
50: return $this;
51: }
52: /**
53: * @return string
54: */
55: public function getTitle()
56: {
57: return $this->title;
58: }
59: /**
60: * @param string $title
61: *
62: * @return self
63: */
64: public function setTitle($title = null)
65: {
66: $this->title = $title;
67: return $this;
68: }
69: /**
70: * @return string
71: */
72: public function getType()
73: {
74: return $this->type;
75: }
76: /**
77: * @param string $type
78: *
79: * @return self
80: */
81: public function setType($type = null)
82: {
83: $this->type = $type;
84: return $this;
85: }
86: /**
87: * @return int
88: */
89: public function getId()
90: {
91: return $this->id;
92: }
93: /**
94: * @param int $id
95: *
96: * @return self
97: */
98: public function setId($id = null)
99: {
100: $this->id = $id;
101: return $this;
102: }
103: /**
104: * @return int
105: */
106: public function getSort()
107: {
108: return $this->sort;
109: }
110: /**
111: * @param int $sort
112: *
113: * @return self
114: */
115: public function setSort($sort = null)
116: {
117: $this->sort = $sort;
118: return $this;
119: }
120: /**
121: * @return bool
122: */
123: public function getFeatured()
124: {
125: return $this->featured;
126: }
127: /**
128: * @param bool $featured
129: *
130: * @return self
131: */
132: public function setFeatured($featured = null)
133: {
134: $this->featured = $featured;
135: return $this;
136: }
137: /**
138: * @return ImageMetadata
139: */
140: public function getMetadata()
141: {
142: return $this->metadata;
143: }
144: /**
145: * @param ImageMetadata $metadata
146: *
147: * @return self
148: */
149: public function setMetadata(ImageMetadata $metadata = null)
150: {
151: $this->metadata = $metadata;
152: return $this;
153: }
154: }