carno-php /
config
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Config setter (locally affected) |
||
| 4 | * User: moyo |
||
| 5 | * Date: 22/03/2018 |
||
| 6 | * Time: 11:16 AM |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace Carno\Config\Chips; |
||
| 10 | |||
| 11 | trait Setter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $key |
||
| 15 | * @param mixed $val |
||
| 16 | * @return static |
||
| 17 | */ |
||
| 18 | public function set(string $key, $val) : self |
||
| 19 | { |
||
| 20 | $this->reset($key, $val); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | } |
||
| 24 |