Arcanedev\LogViewer\Tables\StatsTable::make PHP Method

make() public static method

Make a stats table instance.
public static make ( array $data, Arcanedev\LogViewer\Contracts\Utilities\LogLevels $levels, string | null $locale = null ) : StatsTable
$data array
$levels Arcanedev\LogViewer\Contracts\Utilities\LogLevels
$locale string | null
return StatsTable
    public static function make(array $data, LogLevelsContract $levels, $locale = null)
    {
        return new self($data, $levels, $locale);
    }

Usage Example

コード例 #1
0
ファイル: Factory.php プロジェクト: 100448facens/LogViewer
 /**
  * Get logs statistics table.
  *
  * @param  string|null  $locale
  *
  * @return \Arcanedev\LogViewer\Tables\StatsTable
  */
 public function statsTable($locale = null)
 {
     return StatsTable::make($this->stats(), $this->levels, $locale);
 }