TauxCotisationApplication.php 1.17 KB
Newer Older
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<?php

namespace App\Entity;

use App\Enum\CurrencyEnum;
use App\Utils\OperationFactory;
use Doctrine\ORM\Mapping as ORM;

/**
 * Application du taux de cotisation lors du paiement d'une cotisation (au sens TAV).
 * 
 * Au paiement d'une cotisation:
 *      - Un premier Flux est enregistré, correspondant à l'achat/vente d'emlc.
 *      - Puis on applique le taux défini dans le ProfilDeCotisation de l'adhérent,
 *        on crée un nouveau flux pour compléter la cositsation.
 *
 * @ORM\Entity
 */
class TauxCotisationApplication extends Flux
{
    const TYPE_REVERSEMENT_COTISATION_ADHERENT = 'reversement_cotisation_adherent';
    const TYPE_PRELEVEMENT_COTISATION_ADHERENT = 'prelevement_cotisation_adherent';

    /**
     * @return string
     */
    public function getParenttype(): string
    {
        return parent::TYPE_APPLICATION_TAUX_COTISATION;
    }

    public function getAllOperations($em)
    {
        return [];
    }

    public function operate($em)
    {
        return [];
    }

    /**
     * @return string
     */
    public function getType(): string
    {
        return '';
    }

    public function getUsersToNotify()
    {
        return [];
    }
}