| @@ 28-35 (lines=8) @@ | ||
| 25 | $this->contentType = $contentType; |
|
| 26 | } |
|
| 27 | ||
| 28 | public function __set($name, $value) |
|
| 29 | { |
|
| 30 | if (isset($this->{$name})) { |
|
| 31 | throw new Upload\InvalidArgumentException('This name "' . $name . '" is reserved.'); |
|
| 32 | } |
|
| 33 | ||
| 34 | return $this->extend[$name] = $value; |
|
| 35 | } |
|
| 36 | ||
| 37 | public function __get($name) |
|
| 38 | { |
|
| @@ 37-43 (lines=7) @@ | ||
| 34 | return $this->extend[$name] = $value; |
|
| 35 | } |
|
| 36 | ||
| 37 | public function __get($name) |
|
| 38 | { |
|
| 39 | if (!isset($this->extend[$name])) { |
|
| 40 | throw new Upload\InvalidArgumentException('This name "' . $name . '" does not exists.'); |
|
| 41 | } |
|
| 42 | return $this->extend[$name]; |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * @return string |
|