|
@@ 98-110 (lines=13) @@
|
| 95 |
|
* |
| 96 |
|
* @throws \RunOpenCode\AbstractBuilder\Exception\InvalidArgumentException |
| 97 |
|
*/ |
| 98 |
|
public function __set($name, $value) |
| 99 |
|
{ |
| 100 |
|
if (!array_key_exists($name, $this->_builder_placeholder_data_87cd3fb3_4fde_49d1_a91f_6411e0862c32)) { |
| 101 |
|
throw new InvalidArgumentException(sprintf('Unknown property "%s" in "%s".', $name, get_class($this))); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
if (method_exists($this, ($setter = sprintf('set%s', ucfirst($name))))) { |
| 105 |
|
$this->{$setter}($value); |
| 106 |
|
return; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
$this->__doSet($name, $value); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
/** |
| 113 |
|
* Get building class constructor argument. |
|
@@ 120-131 (lines=12) @@
|
| 117 |
|
* |
| 118 |
|
* @throws \RunOpenCode\AbstractBuilder\Exception\InvalidArgumentException |
| 119 |
|
*/ |
| 120 |
|
public function __get($name) |
| 121 |
|
{ |
| 122 |
|
if (!array_key_exists($name, $this->_builder_placeholder_data_87cd3fb3_4fde_49d1_a91f_6411e0862c32)) { |
| 123 |
|
throw new InvalidArgumentException(sprintf('Unknown property "%s" in "%s".', $name, get_class($this))); |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
if (method_exists($this, ($getter = sprintf('get%s', ucfirst($name))))) { |
| 127 |
|
return $this->{$getter}(); |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
return $this->__doGet($name); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
/** |
| 134 |
|
* Check if building class constructor argument is defined. |