|
5 | 5 | * @category Services
|
6 | 6 | * @package Services_Zencoder
|
7 | 7 | * @author Michael Christopher <m@zencoder.com>
|
8 |
| - * @version 2.0 |
9 |
| - * @license http://creativecommons.org/licenses/MIT/MIT |
| 8 | + * @license http://creativecommons.org/licenses/MIT/MIT MIT |
| 9 | + * @version Release: 2.0 |
10 | 10 | * @link http://github.com/zencoder/zencoder-php
|
11 | 11 | */
|
12 | 12 |
|
13 |
| -class Services_Zencoder_Progress extends Services_Zencoder_Object { |
| 13 | +class Services_Zencoder_Progress extends Services_Zencoder_Object |
| 14 | +{ |
14 | 15 |
|
15 |
| - public function __construct($params) { |
16 |
| - $this->_update_attributes($params); |
17 |
| - } |
| 16 | + public function __construct($params) |
| 17 | + { |
| 18 | + $this->_updateAttributes($params); |
| 19 | + } |
18 | 20 |
|
19 |
| - private function _update_attributes($attributes = array()) { |
20 |
| - foreach($attributes as $attr_name => $attr_value) { |
21 |
| - if ($attr_name == "outputs" && is_array($attr_value)) { |
22 |
| - $this->_create_outputs($attr_value); |
23 |
| - } elseif ($attr_name == "input" && is_object($attr_value)) { |
24 |
| - $this->input = new Services_Zencoder_Input($attr_value); |
25 |
| - } elseif (empty($this->$attr_name)) { |
26 |
| - $this->$attr_name = $attr_value; |
| 21 | + private function _updateAttributes($attributes = array()) |
| 22 | + { |
| 23 | + foreach ($attributes as $attr_name => $attr_value) { |
| 24 | + if ($attr_name == "outputs" && is_array($attr_value)) { |
| 25 | + $this->_create_outputs($attr_value); |
| 26 | + } elseif ($attr_name == "input" && is_object($attr_value)) { |
| 27 | + $this->input = new Services_Zencoder_Input($attr_value); |
| 28 | + } elseif (empty($this->$attr_name)) { |
| 29 | + $this->$attr_name = $attr_value; |
| 30 | + } |
27 | 31 | }
|
28 | 32 | }
|
29 |
| - } |
30 | 33 | }
|
0 commit comments