<?php

namespace ACP\Search\Helper\Sql\Comparison;

use ACP\Search\Value;

class EndsWith extends Like
{

    public function bind_value(Value $value): self
    {
        $value = new Value(
            $this->value_ends_with((string)$value->get_value()),
            $value->get_type()
        );

        return parent::bind_value($value);
    }

}