Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct(array());
 }