| @@ 123-133 (lines=11) @@ | ||
| 120 | *  | 
                                |
| 121 | * @return bool  | 
                                |
| 122 | */  | 
                                |
| 123 | final public function setValueByProperty(string $name, $value): bool  | 
                                |
| 124 |     { | 
                                |
| 125 | $property = $this->getPropertyByName($name);  | 
                                |
| 126 |         if ($property !== null && Validator::new($this)->isValidProperty($property)) { | 
                                |
| 127 | $property->setValue($this->object, $value);  | 
                                |
| 128 | ||
| 129 | return true;  | 
                                |
| 130 | }  | 
                                |
| 131 | ||
| 132 | return false;  | 
                                |
| 133 | }  | 
                                |
| 134 | ||
| 135 | /**  | 
                                |
| 136 | * @param string $name  | 
                                |
| @@ 173-181 (lines=9) @@ | ||
| 170 | *  | 
                                |
| 171 | * @return mixed|null  | 
                                |
| 172 | */  | 
                                |
| 173 | final public function getValueByProperty(string $name)  | 
                                |
| 174 |     { | 
                                |
| 175 | $property = $this->getPropertyByName($name);  | 
                                |
| 176 |         if ($property !== null && Validator::new($this)->isValidProperty($property)) { | 
                                |
| 177 | return $property->getValue($this->object);  | 
                                |
| 178 | }  | 
                                |
| 179 | ||
| 180 | return null;  | 
                                |
| 181 | }  | 
                                |
| 182 | ||
| 183 | /**  | 
                                |
| 184 | * @param string $postfix  | 
                                |