1 | <?php |
||
7 | class Config |
||
8 | { |
||
9 | /** |
||
10 | * @var \Illuminate\Contracts\Config\Repository |
||
11 | */ |
||
12 | private $repository; |
||
13 | |||
14 | /** |
||
15 | * Config constructor. |
||
16 | * |
||
17 | * @param \Illuminate\Contracts\Config\Repository $repository |
||
18 | */ |
||
19 | public function __construct(Repository $repository) |
||
23 | |||
24 | /** |
||
25 | * Check if config uses wild card search. |
||
26 | * |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function isWildcard() |
||
33 | |||
34 | /** |
||
35 | * Check if config uses smart search. |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function isSmartSearch() |
||
43 | |||
44 | /** |
||
45 | * Check if config uses case insensitive search. |
||
46 | * |
||
47 | * @return bool |
||
48 | */ |
||
49 | public function isCaseInsensitive() |
||
53 | |||
54 | /** |
||
55 | * Check if app is in debug mode. |
||
56 | * |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function isDebugging() |
||
63 | |||
64 | /** |
||
65 | * Get the specified configuration value. |
||
66 | * |
||
67 | * @param string $key |
||
68 | * @param mixed $default |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function get($key, $default = null) |
||
75 | |||
76 | /** |
||
77 | * Set a given configuration value. |
||
78 | * |
||
79 | * @param array|string $key |
||
80 | * @param mixed $value |
||
81 | * @return void |
||
82 | */ |
||
83 | public function set($key, $value = null) |
||
87 | |||
88 | /** |
||
89 | * Check if dataTable config uses multi-term searching. |
||
90 | * |
||
91 | * @return bool |
||
92 | */ |
||
93 | public function isMultiTerm() |
||
97 | } |
||
98 |