/**
* @param array<array-key, array<string, mixed>> $data
*
* @throws BatchInterfaceNotImplementedException
*
* @return array<array-key, array<string, mixed>>
*/
public function batchDelete($data) { if (!
$this instanceof BatchInterface
) { throw new BatchInterfaceNotImplementedException();
} $results =
[];
foreach ($data as $key =>
$datum) { $id =
$this->
getIdByData($datum);
try { $results[$key] =
[ 'success' => true,
'operation' => 'delete',
'data' =>
$this->
delete($id),
];