Skip to content

Commit 4da1149

Browse files
authored
Merge pull request brightcove#45 from ElKappo/master
Add type attribute to Item/Video/Source
2 parents b9fad43 + cab2608 commit 4da1149

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

lib/Brightcove/Item/Video/Source.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ class Source extends ObjectBase {
7171
*/
7272
protected $src;
7373

74+
/**
75+
* @var string
76+
*/
77+
protected $type;
78+
7479
public function applyJSON(array $json) {
7580
parent::applyJSON($json);
7681
$this->applyProperty($json, 'id');
@@ -85,6 +90,7 @@ public function applyJSON(array $json) {
8590
$this->applyProperty($json, 'size');
8691
$this->applyProperty($json, 'uploaded_at');
8792
$this->applyProperty($json, 'src');
93+
$this->applyProperty($json, 'type');
8894
}
8995

9096
/**
@@ -290,4 +296,23 @@ public function setUploadedAt($uploaded_at) {
290296
$this->fieldChanged('uploaded_at');
291297
return $this;
292298
}
299+
300+
/**
301+
* @return mixed
302+
*/
303+
public function getType()
304+
{
305+
return $this->type;
306+
}
307+
308+
/**
309+
* @param mixed $type
310+
* @return Source
311+
*/
312+
public function setType($type)
313+
{
314+
$this->type = $type;
315+
$this->fieldChanged('type');
316+
return $this;
317+
}
293318
}

0 commit comments

Comments
 (0)