summaryrefslogtreecommitdiff
path: root/plugins/jobs/tests/Jobs/Amqp/ErrorJob.php
blob: 82b6e7e03923f44dd50dbda815a36654542c9f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

/**
 * Spiral Framework.
 *
 * @license   MIT
 * @author    Anton Titov (Wolfy-J)
 */

declare(strict_types=1);

namespace Spiral\Jobs\Tests\Amqp;

use Spiral\Jobs\JobHandler;

class ErrorJob extends JobHandler
{
    public function invoke(string $id): void
    {
        throw new \Error('something is wrong');
    }
}