The isForAllTenants method checks if the migration is for all tenants by verifying if the $tenants property is set to '*'.
The getTenants method returns the tenants to be migrated, which can be either an array of tenant identifiers or the '*' string indicating all tenants.