18 lines
343 B
PHP
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
|
|
);
|
|
}
|
|
}
|