1 | <?php namespace Arcanedev\LaravelMetrics\Metrics\Concerns; |
||
11 | trait HasExpressions |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Main Methods |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | /** |
||
19 | * Get an database expression. |
||
20 | * |
||
21 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
22 | * @param string $name |
||
23 | * @param mixed|null $value |
||
24 | * @param array $params |
||
25 | * |
||
26 | * @return \Arcanedev\LaravelMetrics\Expressions\Expression|mixed |
||
27 | */ |
||
28 | 4 | protected function getExpression($query, string $name, $value = null, array $params = []): Expression |
|
32 | } |
||
33 |