for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace WMDE\BannerServer\Entity\BannerSelection;
/**
* @license GNU GPL v2+
*/
class ImpressionThreshold {
private $seasonalLimit;
public function __construct( int $seasonalLimit ) {
$this->seasonalLimit = $seasonalLimit;
}
public function isThresholdReached( int $impressions ): bool {
return $impressions >= $this->seasonalLimit;