for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package Cadmium\System\Utils
* @author Anton Romanov
* @copyright Copyright (c) 2015-2017, Anton Romanov
* @link http://cadmium-cms.com
*/
namespace Utils\Schema {
class _Integer {
* Validate a value
*
* @return int|null : the validated value or null on failure
public function validate($value) {
return (is_scalar($value) ? intval($value) : null);
}