1 | <?php |
||
6 | trait HasAttributes |
||
7 | { |
||
8 | protected $attributes = []; |
||
9 | |||
10 | /** |
||
11 | * Set a given log value. |
||
12 | * |
||
13 | * @param array|string $key |
||
14 | * @param mixed $value |
||
15 | */ |
||
16 | public function setAttribute($key, $value = null) |
||
24 | |||
25 | /** |
||
26 | * Get the specified log value. |
||
27 | * |
||
28 | * @param null|string $key |
||
29 | * @param mixed $default |
||
30 | * |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getAttribute($key = null, $default = null) |
||
37 | |||
38 | |||
39 | public function merge(array $attributes) |
||
45 | } |
||
46 |