for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace KGzocha\Searcher\Criteria;
/**
* @author Krzysztof Gzocha <[email protected]>
*/
class NumberCriteria implements CriteriaInterface
{
* @var float
private $number;
* @param float $number
public function __construct(float $number = null)
$this->number = $number;
}
* @return float|null
public function getNumber()
return $this->number;
public function setNumber(float $number = null)
* {@inheritdoc}
public function shouldBeApplied(): bool
return $this->number !== null;