src/PTS/DataTransformer/Types/FloatType.php
<?php
namespace PTS\DataTransformer\Types;
class FloatType
{
/**
* @param float $value
* @return float
*/
public function toModel($value)
{
return (float) $value;
}
/**
* @param float $value
* @return float
*/
public function toData($value)
{
return (float) $value;
}
}