gdbots/pbjc-php

View on GitHub
src/Type/FloatType.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Gdbots\Pbjc\Type;

final class FloatType extends AbstractType
{
    /**
     * {@inheritdoc}
     */
    public function getDefault()
    {
        return 0.0;
    }

    /**
     * {@inheritdoc}
     */
    public function isNumeric()
    {
        return true;
    }

    /**
     * {@inheritdoc}
     */
    public function getMin()
    {
        return -1;
    }

    /**
     * {@inheritdoc}
     */
    public function getMax()
    {
        return INF;
    }
}