<?php

namespace ACP\Search\Helper\Sql\Comparison;

use ACP\Search\Value;

class BeginsWith extends Like
{

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

        return parent::bind_value($value);
    }

}