| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class Repeater extends Eloquent |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The attributes that are mass assignable. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = [ |
||
| 21 | 'slug', 'url', 'page', 'json' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | protected $casts = [ |
||
| 25 | 'json' => 'array', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | public function getJson(string $string) |
||
| 32 | } |
||
| 33 | |||
| 34 | private function resolveJson($var) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Dynamically retrieve attributes on the model. |
||
| 51 | * |
||
| 52 | * @param string $key |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | public function __get($key) |
||
| 60 |