<?php

declare(strict_types=1);

namespace Psalm\Plugin\EventHandler\Event;

use Psalm\Issue\CodeIssue;

class BeforeAddIssueEvent
{
    /**
     * @var CodeIssue
     */
    private CodeIssue $issue;

    /**
     * @var bool
     */
    private bool $fixable;

    public function __construct(CodeIssue $issue, bool $fixable)
    {
        $this->issue = $issue;
        $this->fixable = $fixable;
    }

    public function getIssue(): CodeIssue
    {
        return $this->issue;
    }

    public function isFixable(): bool
    {
        return $this->fixable;
    }
}

<?php

declare(strict_types=1);

namespace Psalm\Plugin\EventHandler\Event;

use Psalm\Issue\CodeIssue;

final class BeforeAddIssueEvent
{
    /**
     * @var CodeIssue
     */
    private CodeIssue $issue;

    /**
     * @var bool
     */
    private bool $fixable;

    public function __construct(CodeIssue $issue, bool $fixable)
    {
        $this->issue = $issue;
        $this->fixable = $fixable;
    }

    public function getIssue(): CodeIssue
    {
        return $this->issue;
    }

    public function isFixable(): bool
    {
        return $this->fixable;
    }
}

Use final event class declarations
[TASK] Use final event class declarations
