for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* A Double field
*/
namespace Rocket\Entities\Fields;
use Rocket\Entities\Field;
*
* @property float $value The value to store
class Double extends Field
{
* @var string The table associated with the model.
public $table = 'field_double';
* Checks if a field is valid
* @param mixed $value The value to validate
* @return bool
protected function isValid($value)
return is_numeric($value);
}