for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* components
*
* @author Wolfy-J
*/
namespace Spiral\ODM\Accessors;
* Allows to store only integer values.
class IntegerArray extends AbstractArray
{
* {@inheritdoc}
protected function filterValue($value)
if (!is_numeric($value)) {
return null;
}
return intval($value);