/** * Generates an array of choices for the given values * * If the values are shorter than $padLength characters, they are padded with * zeros on the left side. * * @param array|\Closure $values The available choices * @param integer $padLength The length to pad the choices * @param string $padString The padding character * @param integer $padType The direction of padding * * @throws UnexpectedTypeException if the type of the values parameter is not supported */ public function __construct($values, $padLength, $padString, $padType = STR_PAD_LEFT) { parent::__construct($values); $this->padLength = $padLength; $this->padString = $padString; $this->padType = $padType; }
public function __construct() { parent::__construct(array()); }