fomvasss /
laravel-variables
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Fomvasss\Variable; |
||
| 4 | |||
| 5 | interface VariableManagerContract |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param string|null $langcode |
||
| 9 | * @param bool|null $useCache |
||
| 10 | * @return \Illuminate\Database\Eloquent\Collection|mixed |
||
| 11 | */ |
||
| 12 | public function all(?string $langcode = null, ?bool $useCache = null); |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $key |
||
| 16 | * @param null $default |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 17 | * @param string|null $langcode |
||
| 18 | * @param bool|null $useCache |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | public function get(string $key, $default = null, ?string $langcode = null, ?bool $useCache = null); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $key |
||
| 25 | * @param null $value |
||
|
0 ignored issues
–
show
|
|||
| 26 | * @param string|null $langcode |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function save(string $key, $value = null, ?string $langcode = null); |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $locale |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public function setLang(?string $langcode = null): VariableManagerContract; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param bool $val |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function useCache(bool $val = true): VariableManagerContract; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function cacheClear(); |
||
| 47 | } |
||
| 48 |