for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ionut\Sylar\Reactions\Traits;
use Ionut\Sylar\Report;
trait ReactBasedOnThreshold
{
/**
* @var int
*/
protected $threshold = 0;
public function shouldReact(Report $report)
return $report->getTotalImpact() > $this->threshold;
}