Documentation

ConvertBase

Table of Contents

validateValue() string
validatePlaces() int|null
nbrConversionFormat() Formats a number base string value with leading zeroes. string

Methods

validateValue()

protected static validateValue( $value : mixed ) : string
Parameters
$value : mixed
Return values
string

validatePlaces()

protected static validatePlaces( [ $places : mixed = null ] ) : int|null
Parameters
$places : mixed = null
Return values
int|null

nbrConversionFormat()

Formats a number base string value with leading zeroes.

protected static nbrConversionFormat( $value : string , $places : int|null ) : string
Parameters
$value : string

The "number" to pad

$places : int|null

The length that we want to pad this value

Return values
string —

The padded "number"

Search results