| Current Path : /var/www/html/eddcfa.sumar.com.py_old/vendor/facade/flare-client-php/src/Glows/ |
| Current File : /var/www/html/eddcfa.sumar.com.py_old/vendor/facade/flare-client-php/src/Glows/Recorder.php |
<?php
namespace Facade\FlareClient\Glows;
class Recorder
{
const GLOW_LIMIT = 30;
private $glows = [];
public function record(Glow $glow)
{
$this->glows[] = $glow;
$this->glows = array_slice($this->glows, static::GLOW_LIMIT * -1, static::GLOW_LIMIT);
}
public function glows(): array
{
return $this->glows;
}
public function reset()
{
$this->glows = [];
}
}