Lines Matching defs:size
16 * @param integer $size number of symbols in ID.
19 protected $size;
34 * @param integer $size
37 public function __construct($size = 21, GeneratorInterface $generator = null)
39 $this->size = $size > 0 ? $size : 21;
48 * @param integer $size
52 public function generateId($size = 0, $mode = self::MODE_NORMAL)
54 $size = $size>0? $size: $this->size;
57 return $this->core->random($this->generator, $size, $this->alphbet);
59 return $this->normalRandom($size);
69 * @param integer $size
73 public function formattedId($alphabet, $size = 0, GeneratorInterface $generator = null)
76 $size = $size>0? $size: $this->size;
79 return $this->core->random($generator, $size, $alphabet);
86 * @param integer $size
92 public function formatedId($alphabet, $size = 0, GeneratorInterface $generator = null)
94 $size = $size>0? $size: $this->size;
96 return $this->formattedId($alphabet, $size, $generator);
105 * @param integer $size
108 private function normalRandom($size)
111 while (1 <= $size--) {