for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Boris Guéry <[email protected]>
*/
namespace Bgy\OAuth2\Utils;
class Ensure extends Assertion
{
public static function positiveIntegerOrZero($value, $message = null, $propertyPath = null)
\Assert\that($value, $message, $propertyPath)
->integer()
->min(0)
;
}
public static function positiveInteger($value, $message = null, $propertyPath = null)
->min(1);