Phalcon\Test\Unit\VersionTest::numberToSpecial PHP Method

numberToSpecial() private method

Translates a number to a special version string (ALPHA, BETA, RC)
Since: 2014-09-04
Author: Nikolaos Dimopoulos ([email protected])
private numberToSpecial ( $number ) : string
$number
return string
    private function numberToSpecial($number)
    {
        $special = '';
        switch ($number) {
            case '1':
                $special = 'ALPHA';
                break;
            case '2':
                $special = 'BETA';
                break;
            case '3':
                $special = 'RC';
                break;
        }
        return $special;
    }