CotisationTavPrelevementCorrectionSolde.php 662 Bytes
<?php

namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * Child class used to notify adherents by email.
 *
 * - [Allocation selon foyer] Un administrateur effectue une opération de correction de solde qui conduit à un prélèvement.
 * @ORM\Entity
 */
class CotisationTavPrelevementCorrectionSolde extends CotisationTavPrelevement
{
    /**
     * @return string
     */
    public function getType(): string
    {
        return parent::TYPE_PRELEVEMENT_COTISATION_ADHERENT_CORRECTION_SOLDE;
    }

    public function getUsersToNotify()
    {
        return [
            'expediteurs' => [$this->getExpediteur()->getUser()],
        ];
    }
}