Lines Matching refs:suggestion
15 public function __construct(?AbstractSuggest $suggestion = null)
17 if (null !== $suggestion) {
18 $this->addSuggestion($suggestion);
31 * Add a suggestion to this suggest clause.
33 public function addSuggestion(AbstractSuggest $suggestion): self
35 return $this->addParam('suggestion', $suggestion);
39 * @param AbstractSuggest|Suggest $suggestion
43 public static function create($suggestion): self
46 case $suggestion instanceof self:
47 return $suggestion;
48 case $suggestion instanceof AbstractSuggest:
49 return new static($suggestion);
63 if (isset($array[$baseName]['suggestion'])) {
64 $suggestion = $array[$baseName]['suggestion'];
65 unset($array[$baseName]['suggestion']);
67 foreach ($suggestion as $key => $value) {