| Total Complexity | 5 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace GeneaLabs\LaravelCaffeine; |
||
| 5 | class Dripper extends Model |
||
| 6 | { |
||
| 7 | public function getHtmlAttribute() : string |
||
| 8 | { |
||
| 9 | $html = (string) view('genealabs-laravel-caffeine::script') |
||
| 10 | ->with([ |
||
| 11 | 'ageCheckInterval' => $this->ageCheckInterval, |
||
|
1 ignored issue
–
show
|
|||
| 12 | 'ageThreshold' => $this->ageThreshold, |
||
|
1 ignored issue
–
show
|
|||
| 13 | 'interval' => $this->interval, |
||
|
1 ignored issue
–
show
|
|||
| 14 | 'url' => $this->url, |
||
|
1 ignored issue
–
show
|
|||
| 15 | ]); |
||
| 16 | return $html; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getAgeCheckIntervalAttribute() : int |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getAgeThresholdAttribute() : int |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getIntervalAttribute() : string |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getUrlAttribute() : string |
||
| 50 |