You need to sign in or sign up before continuing.
CotisationTavPrelevementDepassementPlafond.php 707 Bytes
Newer Older
Yvon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?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 manuelle de prélèvement de l'adhérent
 *   pour ramener son solde au niveau de son plafond.
 * @ORM\Entity
 */
class CotisationTavPrelevementDepassementPlafond extends CotisationTavPrelevement
{
    /**
     * @return string
     */
    public function getType(): string
    {
        return parent::TYPE_PRELEVEMENT_COTISATION_ADHERENT_DEPASSEMENT_PLAFOND;
    }

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