HasCompteEntity.php 626 Bytes
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php

namespace App\Entity\EntityTrait;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;

trait HasCompteEntity
{
    /**
     * @var int
     *
14
     * @ORM\Column(name="compte", type="decimal", precision=12, scale=2)
Julien Jorry committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
     */
    private $compte = 0;

    /**
     * @return int
     */
    public function getCompte(): float
    {
        return $this->compte;
    }

    /**
     * @param int $compte
     * @return $this
     */
    public function setCompte(float $compte)
    {
        $this->compte = $compte;
        return $this;
    }
}