class Color extends Color (View source)

Properties

protected $generator from  Base
protected $unique from  Base
static protected $safeColorNames
static protected $allColorNames

Methods

__construct(Generator $generator)

No description

from  Base
static 
randomDigit()

No description

from  Base
static 
randomDigitNotNull()

No description

from  Base
static 
randomNumber($nbDigits = null, $strict = false)

No description

from  Base
static 
randomFloat($nbMaxDecimals = null, $min = 0, $max = null)

No description

from  Base
static 
numberBetween($min = 0, $max = 2147483647)

No description

from  Base
static 
randomLetter()

No description

from  Base
static 
randomAscii()

No description

from  Base
static 
randomElements(array $array = ['a', 'b', 'c'], $count = 1)

No description

from  Base
static 
randomElement($array = ['a', 'b', 'c'])

No description

from  Base
static 
randomKey(array $array = [])

No description

from  Base
static 
shuffle($arg = '')

No description

from  Base
static 
shuffleArray($array = [])

No description

from  Base
static 
shuffleString($string = '', $encoding = 'UTF-8')

No description

from  Base
static 
numerify($string = '###')

No description

from  Base
static 
lexify($string = '????')

No description

from  Base
static 
bothify($string = '## ??')

No description

from  Base
static 
asciify($string = '****')

No description

from  Base
static 
regexify($regex = '')

No description

from  Base
static 
toLower($string = '')

No description

from  Base
static 
toUpper($string = '')

No description

from  Base
optional($weight = 0.5, $default = null)

No description

from  Base
unique($reset = false, $max_retries = 10000)

No description

from  Base
static 
eachEvery($array)

No description

from  Base
static 
hexColor()

No description

from  Color
static 
safeHexColor()

No description

from  Color
static 
rgbColorAsArray()

No description

from  Color
static 
rgbColor()

No description

from  Color
static 
rgbCssColor()

No description

from  Color
static 
safeColorName()

No description

from  Color
static 
colorName()

No description

from  Color

Details

__construct(Generator $generator)

No description

Parameters

Generator $generator

static randomDigit()

No description

static randomDigitNotNull()

No description

static randomNumber($nbDigits = null, $strict = false)

No description

Parameters

$nbDigits
$strict

static randomFloat($nbMaxDecimals = null, $min = 0, $max = null)

No description

Parameters

$nbMaxDecimals
$min
$max

static numberBetween($min = 0, $max = 2147483647)

No description

Parameters

$min
$max

static randomLetter()

No description

static randomAscii()

No description

static randomElements(array $array = ['a', 'b', 'c'], $count = 1)

No description

Parameters

array $array
$count

static randomElement($array = ['a', 'b', 'c'])

No description

Parameters

$array

static randomKey(array $array = [])

No description

Parameters

array $array

static shuffle($arg = '')

No description

Parameters

$arg

static shuffleArray($array = [])

No description

Parameters

$array

static shuffleString($string = '', $encoding = 'UTF-8')

No description

Parameters

$string
$encoding

static numerify($string = '###')

No description

Parameters

$string

static lexify($string = '????')

No description

Parameters

$string

static bothify($string = '## ??')

No description

Parameters

$string

static asciify($string = '****')

No description

Parameters

$string

static regexify($regex = '')

No description

Parameters

$regex

static toLower($string = '')

No description

Parameters

$string

static toUpper($string = '')

No description

Parameters

$string

optional($weight = 0.5, $default = null)

No description

Parameters

$weight
$default

unique($reset = false, $max_retries = 10000)

No description

Parameters

$reset
$max_retries

static protected eachEvery($array)

No description

Parameters

$array

static hexColor()

No description

static safeHexColor()

No description

static rgbColorAsArray()

No description

static rgbColor()

No description

static rgbCssColor()

No description

static safeColorName()

No description

static colorName()

No description