Rev 8 | Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 8 | Rev 10 | ||
|---|---|---|---|
| Line 166... | Line 166... | ||
| 166 | * Universal getter
|
166 | * Universal getter
|
| 167 | *
|
167 | *
|
| 168 | * @param string $name
|
168 | * @param string $name
|
| 169 | * Name of the property to be read-accessed. Currently only 'sign'
|
169 | * Name of the property to be read-accessed. Currently only 'sign'
|
| 170 | * is supported.
|
170 | * is supported.
|
| 171 | * @throws Exception if a non-existing property is accessed
|
171 | * @throws InvalidArgumentException if a non-existing property is accessed
|
| 172 | * @return mixed
|
172 | * @return mixed
|
| 173 | * Property value
|
173 | * Property value
|
| 174 | */
|
174 | */
|
| 175 | public function __get($name) |
175 | public function __get($name) |
| 176 | {
|
176 | {
|
| Line 178... | Line 178... | ||
| 178 | {
|
178 | {
|
| 179 | return $this->sign; |
179 | return $this->sign; |
| 180 | }
|
180 | }
|
| 181 | else
|
181 | else
|
| 182 | {
|
182 | {
|
| - | 183 | throw new InvalidArgumentException( |
|
| 183 | throw new Exception('No such property ' . get_class($this) . "::\$$name"); |
184 | 'No such property ' . get_class($this) . "::\$$name"); |
| 184 | }
|
185 | }
|
| 185 | }
|
186 | }
|
| 186 | 187 | ||
| 187 | /**
|
188 | /**
|
| 188 | * Returns the reference for this footnote
|
189 | * Returns the reference for this footnote
|