| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait EncryptsAttributes |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Get a plain attribute (not a relationship). |
||
| 9 | * |
||
| 10 | * @param string $key |
||
| 11 | * |
||
| 12 | * @return mixed |
||
| 13 | */ |
||
| 14 | public function getAttributeValue($key) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Set a given attribute on the model. |
||
| 28 | * |
||
| 29 | * @param string $key |
||
| 30 | * @param mixed $value |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setAttribute( |
||
| 46 |