<?php

namespace ACP\Search\Helper\Sql\Comparison;

use ACP\Search\Helper\Sql\Statement;
use ACP\Search\Value;

class Contains extends Like
{

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

        return parent::bind_value($value);
    }

}