- private function addStart($token) {
- if (empty($token)) return;
- $this->increment($this->start, $token);
- }
-
- private function addOne($one, $token) {
- $cmb = $this->generalize([$one]);
- if (!isset($this->one[$cmb])) {
- $this->one[$cmb] = [];
- }
- $this->increment($this->one[$cmb], $token);
- }
-
- private function addTwo($one, $two, $token) {
- $cmb = $this->generalize([$one, $two]);
- if (!isset($this->two[$cmb])) {
- $this->two[$cmb] = [];
- }
- $this->increment($this->two[$cmb], $token);
- }
-
- private function addThree($one, $two, $three, $token) {
- $cmb = $this->generalize([$one, $two, $three]);
- if (!isset($this->three[$cmb])) {
- $this->three[$cmb] = [];
- }
- $this->increment($this->three[$cmb], $token);
- }
-
- private function addFour($one, $two, $three, $four, $token) {
- $cmb = $this->generalize([$one, $two, $three, $four]);
- if (!isset($this->four[$cmb])) {
- $this->four[$cmb] = [];
- }
- $this->increment($this->four[$cmb], $token);
- }
-
- private function addFive($one, $two, $three, $four, $five, $token) {
- $cmb = $this->generalize([$one, $two, $three, $four, $five]);
- if (!isset($this->five[$cmb])) {
- $this->five[$cmb] = [];