1 | <?php |
||
8 | trait HasAttributes |
||
9 | { |
||
10 | protected $attributes = []; |
||
11 | |||
12 | /** |
||
13 | * Set a given log value. |
||
14 | * |
||
15 | * @param array|string $key |
||
16 | * @param mixed $value |
||
17 | */ |
||
18 | public function setAttribute($key, $value = null) |
||
26 | |||
27 | /** |
||
28 | * Get the specified log value. |
||
29 | * |
||
30 | * @param null|string $key |
||
31 | * @param mixed $default |
||
32 | * |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function getAttribute($key = null, $default = null) |
||
39 | |||
40 | |||
41 | public function merge(array $attributes) |
||
47 | } |
||
48 |