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