src/Database/Column.php
protected function assertUniqueIndex($key, $indexes)
    {
        $this->context->assertArrayHasKey($key, $indexes, "The {$this->name} column is not indexed.");
        $this->assertTrue($indexes[$key]->isUnique(), "The {$this->name} is not a unique index.");
    }
protected function assertUniqueIndex($key, $indexes)
    {
        $this->context->assertArrayHasKey($key, $indexes, "The {$this->name} column is not indexed.");
        $this->assertTrue($indexes[$key]->isUnique(), "The {$this->name} is not a unique index.");
    }
protected function assertUniqueIndex ( $ key , $ indexes ) { $ this -> context -> assertArrayHasKey ( $ key , $ indexes , "The {$this->name} column is not indexed." ) ; $ this -> assertTrue ( $ indexes [ $ key ] -> isUnique ( ) , "The {$this->name} is not a unique index." ) ; }
Assert a key is a unique index.

@param string $key
@param array $indexes
@return void
Assert a key is a unique index .