src/DataStore/src/TableGateway/TableManagerMysql.php
protected function createUniqueKeyConstraint(
        $constraintOptions,
        string $fieldName,
        string $tableName
    ): Constraint\UniqueKey {
        $constraintName = is_string($constraintOptions) ? $constraintOptions : "UniqueKey_{$tableName}_{$fieldName}";

        return new Constraint\UniqueKey([$fieldName], $constraintName);
    }
protected function createUniqueKeyConstraint(
        $constraintOptions,
        string $fieldName,
        string $tableName
    ): Constraint\UniqueKey {
        $constraintName = is_string($constraintOptions) ? $constraintOptions : "UniqueKey_{$tableName}_{$fieldName}";

        return new Constraint\UniqueKey([$fieldName], $constraintName);
    }
protected function createUniqueKeyConstraint ( $ constraintOptions , string $ fieldName , string $ tableName ) : Constraint \ UniqueKey { $ constraintName = is_string ( $ constraintOptions ) ? $ constraintOptions : "UniqueKey_{$tableName}_{$fieldName}" ; return new Constraint \ UniqueKey ( [ $ fieldName ] , $ constraintName ) ; }
Create and return instance of Constraint\UniqueKey

@param null $constraintOptions
@param string $fieldName
@param string $tableName
@return Constraint\UniqueKey
Create and return instance of Constraint \ UniqueKey