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