fimetto minimum ok
This commit is contained in:
1 parent
9c78f507f4
commit
a2b0569c9e
20 files changed
+134
-25
No files matched your search
@@ -13,6 +13,8 @@ class Column3way extends Column
|
||||
|
||||
protected ?array $max;
|
||||
|
||||
protected ?array $min;
|
||||
|
||||
protected ?array $bookmakers;
|
||||
|
||||
protected ?bool $has_data;
|
||||
@@ -34,12 +36,16 @@ class Column3way extends Column
|
||||
$this->data = Odds3way::with('bookmaker')->where('event_id', $record->id)->get();
|
||||
|
||||
$this->max['h3w'] = $this->data->max('h3w');
|
||||
$this->min['h3w'] = $this->data->min('h3w');
|
||||
|
||||
$this->max['d3w'] = $this->data->max('d3w');
|
||||
$this->min['d3w'] = $this->data->min('d3w');
|
||||
|
||||
$this->max['a3w'] = $this->data->max('a3w');
|
||||
$this->min['a3w'] = $this->data->min('a3w');
|
||||
|
||||
$this->max['margin'] = $this->data->max('margin');
|
||||
$this->min['margin'] = $this->data->min('margin');
|
||||
|
||||
$this->has_data = count($this->data) ? true : false;
|
||||
}
|
||||
@@ -54,6 +60,11 @@ class Column3way extends Column
|
||||
return $this->max;
|
||||
}
|
||||
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
|
||||
public function hasData()
|
||||
{
|
||||
return $this->has_data;
|
||||
|
||||
Reference in new issue
Block a user