@@ -14,21 +14,21 @@ |
||
14 | 14 | |
15 | 15 | trait Magic{ |
16 | 16 | |
17 | - public function __get(string $name) { |
|
17 | + public function __get(string $name){ |
|
18 | 18 | return $this->get($name); |
19 | 19 | } |
20 | 20 | |
21 | - public function __set(string $name, $value) { |
|
21 | + public function __set(string $name, $value){ |
|
22 | 22 | $this->set($name, $value); |
23 | 23 | } |
24 | 24 | |
25 | - private function get(string $name) { |
|
25 | + private function get(string $name){ |
|
26 | 26 | $method = 'magic_get_'.$name; |
27 | 27 | |
28 | 28 | return method_exists($this, $method) ? $this->$method() : null; |
29 | 29 | } |
30 | 30 | |
31 | - private function set(string $name, $value) { |
|
31 | + private function set(string $name, $value){ |
|
32 | 32 | $method = 'magic_set_'.$name; |
33 | 33 | |
34 | 34 | if(method_exists($this, $method)){ |
@@ -14,21 +14,21 @@ |
||
14 | 14 | |
15 | 15 | trait Magic{ |
16 | 16 | |
17 | - public function __get(string $name) { |
|
17 | + public function __get(string $name){ |
|
18 | 18 | return $this->get($name); |
19 | 19 | } |
20 | 20 | |
21 | - public function __set(string $name, $value) { |
|
21 | + public function __set(string $name, $value){ |
|
22 | 22 | $this->set($name, $value); |
23 | 23 | } |
24 | 24 | |
25 | - private function get(string $name) { |
|
25 | + private function get(string $name){ |
|
26 | 26 | $method = 'magic_get_'.$name; |
27 | 27 | |
28 | 28 | return method_exists($this, $method) ? $this->$method() : null; |
29 | 29 | } |
30 | 30 | |
31 | - private function set(string $name, $value) { |
|
31 | + private function set(string $name, $value){ |
|
32 | 32 | $method = 'magic_set_'.$name; |
33 | 33 | |
34 | 34 | if(method_exists($this, $method)){ |