| Total Complexity | 6 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait Setters |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Return fresh cache from database |
||
| 9 | * @return $this |
||
| 10 | */ |
||
| 11 | public function fresh() |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * set x seconds for ip expiration |
||
| 20 | * |
||
| 21 | * @param $seconds |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | public function seconds($seconds) |
||
| 25 | { |
||
| 26 | $this->ipSeconds = $seconds; |
||
| 27 | |||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @param $country |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function country($country) |
||
| 37 | { |
||
| 38 | $this->country = $country; |
||
| 39 | |||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * @param $referer |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | public function referer($referer) |
||
| 49 | { |
||
| 50 | $this->referer = $referer; |
||
| 51 | |||
| 52 | return $this; |
||
| 53 | } |
||
| 54 | |||
| 55 | |||
| 56 | /** |
||
| 57 | * Change period |
||
| 58 | * |
||
| 59 | * @param $period |
||
| 60 | * @return $this |
||
| 61 | */ |
||
| 62 | public function period($period) |
||
| 69 | } |
||
| 70 | } |
||
| 71 |