| @@ 44-54 (lines=11) @@ | ||
| 41 | $this->info = new ReflectionClass($this->className); |
|
| 42 | } |
|
| 43 | ||
| 44 | public function __get($name) |
|
| 45 | { |
|
| 46 | if ($name === 'md' || $name === 'html' || $name === 'short') |
|
| 47 | { |
|
| 48 | if (!$this->info->hasProperty($name)) |
|
| 49 | { |
|
| 50 | return (new InlineWrapper($this->className))->$name; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | return $this->_get($name); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function method($name) |
|
| 57 | { |
|
| @@ 44-54 (lines=11) @@ | ||
| 41 | $this->info = new ReflectionClass($this->className); |
|
| 42 | } |
|
| 43 | ||
| 44 | public function __get($name) |
|
| 45 | { |
|
| 46 | if ($name === 'md' || $name === 'html' || $name === 'short') |
|
| 47 | { |
|
| 48 | if (!$this->info->hasProperty($name)) |
|
| 49 | { |
|
| 50 | return (new InlineWrapper($this->info->getShortName()))->$name; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | return $this->_get($name); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function method($name) |
|
| 57 | { |
|