Covivo/mobicoop

View on GitHub
api/src/Carpool/Event/CarpoolProofInvalidatedEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Carpool\Event;

use App\Carpool\Entity\CarpoolProof;
use Symfony\Contracts\EventDispatcher\Event;

class CarpoolProofInvalidatedEvent extends Event
{
    public const NAME = 'carpool_proof_invalidated';

    protected $carpoolProof;

    public function __construct(CarpoolProof $carpoolProof)
    {
        $this->carpoolProof = $carpoolProof;
    }

    public function getCarpoolProof(): CarpoolProof
    {
        return $this->carpoolProof;
    }
}