| @@ 144-153 (lines=10) @@ | ||
| 141 | /** |
|
| 142 | * {@inheritDoc} |
|
| 143 | */ |
|
| 144 | protected function realSetAttribute(/*# string */ $attribute, $value) |
|
| 145 | { |
|
| 146 | if (is_string($attribute)) { |
|
| 147 | $this->checkAttribute($attribute); |
|
| 148 | $this->link->setAttribute(constant($attribute), $value); |
|
| 149 | } else { |
|
| 150 | $this->link->setAttribute($attribute, $value); |
|
| 151 | } |
|
| 152 | return $this; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * {@inheritDoc} |
|
| @@ 158-166 (lines=9) @@ | ||
| 155 | /** |
|
| 156 | * {@inheritDoc} |
|
| 157 | */ |
|
| 158 | protected function realGetAttribute(/*# string */ $attribute) |
|
| 159 | { |
|
| 160 | if (is_string($attribute)) { |
|
| 161 | $this->checkAttribute($attribute); |
|
| 162 | return $this->link->getAttribute(constant($attribute)); |
|
| 163 | } else { |
|
| 164 | return $this->link->getAttribute($attribute); |
|
| 165 | } |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * {@inheritDoc} |
|