Lines Matching refs:choices
40 public function select(array $choices = [], array $options = []): MechanismInterface
42 $mechs = $this->getAvailableMechsFromChoices($choices, $options);
94 * @param string[] $choices
99 protected function getAvailableMechsFromChoices(array $choices, array $options): array
101 $available = $this->filterFromChoices($choices);
103 $this->throwException($choices);
108 $this->throwException($choices);
115 * @param string[] $choices
118 protected function filterFromChoices(array $choices): array
120 if (count($choices) === 0) {
126 if (in_array($choice->getName(), $choices, true)) {
170 protected function throwException(array $choices = []): void
173 'No supported SASL mechanisms could be found from the provided choices: %s',
174 implode($choices, ', ')