string = $string; $this->collation = $collation; } /** * Sets the string collation. * * @param string $collation String collation * @return void */ public function setCollation(string $collation): void { $this->collation = $collation; } /** * Returns the string collation. * * @return string */ public function getCollation(): string { return $this->collation; } /** * @inheritDoc */ public function sql(ValueBinder $binder): string { $placeholder = $binder->placeholder('c'); $binder->bind($placeholder, $this->string, 'string'); return $placeholder . ' COLLATE ' . $this->collation; } /** * @inheritDoc */ public function traverse(Closure $callback) { return $this; } }