efureev/laravel-support-db

View on GitHub
src/Schema/Postgres/Builders/Indexes/Unique/UniqueBuilder.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace Php\Support\Laravel\Database\Schema\Postgres\Builders\Indexes\Unique;

use Illuminate\Support\Fluent;

class UniqueBuilder extends Fluent
{
    public function __call($method, $parameters)
    {
        $command = new UniquePartialBuilder();
        $this->attributes['constraints'] = call_user_func_array([$command, $method], $parameters);
        return $command;
    }
}