Files
piratepoet/tests/integration/Cron/Workers/BounceTestMockAPI.php
Amine Ben hammou 43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03: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
);
}
}