Files
piratepoet/mailpoet/tests/integration/Cron/Workers/BounceTestMockAPI.php
Jan Jakes 9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00

18 lines
343 B
PHP

<?php
namespace MailPoet\Cron\Workers\Bounce;
class BounceTestMockAPI {
public function checkBounces(array $emails) {
return array_map(
function ($email) {
return [
'address' => $email,
'bounce' => preg_match('/(hard|soft)/', $email, $m) ? $m[1] : null,
];
},
$emails
);
}
}