|
@@ 75-77 (lines=3) @@
|
| 72 |
|
*/ |
| 73 |
|
public function set(string $key, $value) |
| 74 |
|
{ |
| 75 |
|
if (isset(self::getColumns()[$key]) === false) { |
| 76 |
|
throw new InvalidEntityPropertyException([get_class($this), $key]); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
$entityProperty = new EntityProperty(self::getColumns()[$key]); |
| 80 |
|
|
|
@@ 107-109 (lines=3) @@
|
| 104 |
|
*/ |
| 105 |
|
public function get(string $key) |
| 106 |
|
{ |
| 107 |
|
if (!isset(self::getColumns()[$key])) { |
| 108 |
|
throw new InvalidEntityPropertyException([get_class($this), $key]); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
return $this->properties[$key]; |
| 112 |
|
} |