TransfertComptoirAdherent.php 809 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TRANSFERT
 *  - COMPTOIRS         =>     ADHERENTS                (Diffusion de monnaie papier auprès des adhérents)
 *
 * @ORM\Entity()
 */
class TransfertComptoirAdherent extends Transfert
{
    /**
16
     * @ORM\OneToOne(targetEntity="Comptoir")
17 18 19 20 21
     * @ORM\JoinColumn(name="comptoir_id", referencedColumnName="id", nullable=true)
     */
    protected $expediteur;

    /**
22
     * @ORM\OneToOne(targetEntity="Adherent")
23 24 25 26 27 28 29 30 31 32 33
     * @ORM\JoinColumn(name="adherent_id", referencedColumnName="id", nullable=true)
     */
    protected $destinataire;

    /**
     * @return string
     */
    public function getType(): string
    {
        return 'comptoir_adherent';
    }
34 35 36 37 38

    public function isVente()
    {
        return false;
    }
39
}