summaryrefslogtreecommitdiff
path: root/plugins/jobs/tests/Jobs/Local/ErrorJob.php
blob: 70b1365bb02efbc248bb56ffdb66042cefc16846 (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\Local;

use Spiral\Jobs\JobHandler;

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