@@ 65-74 (lines=10) @@ | ||
62 | * @return mixed |
|
63 | * @throws Exception |
|
64 | */ |
|
65 | public function __get($name) |
|
66 | { |
|
67 | if (property_exists(static::class, $name)) { |
|
68 | return $this->{$name}; |
|
69 | } |
|
70 | ||
71 | throw new Exception( |
|
72 | 'The property "'.$name.'" does not exist in class "'.static::class.'"' |
|
73 | ); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Get a fresh instance of this class. |
@@ 76-85 (lines=10) @@ | ||
73 | * @return mixed |
|
74 | * @throws Exception |
|
75 | */ |
|
76 | public function __get($name) |
|
77 | { |
|
78 | if (property_exists(static::class, $name)) { |
|
79 | return $this->{$name}; |
|
80 | } |
|
81 | ||
82 | throw new Exception( |
|
83 | 'The property "'.$name.'" does not exist in class "'.static::class.'"' |
|
84 | ); |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * Get a fresh instance of this class. |