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