for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Linna Filter
*
* @author Sebastian Rapetti <[email protected]>
* @copyright (c) 2017, Sebastian Rapetti
* @license http://opensource.org/licenses/MIT MIT License
*/
declare(strict_types = 1);
namespace Linna\Filter\Rules;
* Check if value is between a intervall.
class Between
{
* Validate.
* @return bool
public function validate($received, $min, $max): bool
if ($received < $min || $received > $max) {
return true;
}
return false;