%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emtnaeewxm/www/src/EEM/VenteBundle/Entity/
Upload File :
Create Path :
Current File : /home/emtnaeewxm/www/src/EEM/VenteBundle/Entity/Vente.php~

<?php

namespace EEM\VenteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Vente
 *
 * @ORM\Table(name="vente")
 * @ORM\Entity(repositoryClass="EEM\VenteBundle\Repository\VenteRepository")
 */
class Vente
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\ManyToOne(targetEntity="EEM\TraiteBundle\Entity\Client" , inversedBy="ventes")
     */
    private $client;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date_vente", type="date", nullable=true)
     */
    private $dateVente;

    /**
     * @ORM\OneToMany(targetEntity="EEM\VenteBundle\Entity\LigneVente", mappedBy="vente",cascade={"persist", "remove"})
     *
     * @var ArrayCollection
     */
    private $ligneVentes;

    /**
     * @var string
     *
     * @ORM\Column(name="benefice", type="decimal", precision=10, scale=3, nullable=true)
     */
    private $benefice;

    /**
     * @var string
     *
     * @ORM\Column(name="chiffre_restant", type="decimal", precision=10, scale=3, nullable=true)
     */
    private $chiffreRestant;

    /**
     * @var string
     *
     * @ORM\Column(name="chiffre_restant_gros", type="decimal", precision=10, scale=3, nullable=true)
     */
    private $chiffreRestantGros;

    /**
     * @var string
     *
     * @ORM\Column(name="type_vente", type="string", length=255, nullable=true)
     */
    private $type;

    /**
     * @var binary
     *
     * @ORM\Column(name="valider", type="boolean", nullable=true)
     */
    private $valider;

    /**
     * @ORM\OneToOne(targetEntity="EEM\PieceBundle\Entity\Piece", inversedBy="venteGros",orphanRemoval=true, cascade={"persist"})
     * @ORM\JoinColumn(name="piece_id",nullable=true)
     */
    private $piece;

    /**
     * @ORM\OneToMany(targetEntity="EEM\FonctionnaliteBundle\Entity\Historique", mappedBy="vente",cascade={"persist", "remove"})
     *
     * @var ArrayCollection
     */
    private $historiques;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }


    /**
     * Constructor
     */
    public function __construct()
    {
        $this->ligneVentes = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Add ligneVente
     *
     * @param \EEM\VenteBundle\Entity\LigneVente $ligneVente
     *
     * @return Vente
     */
    public function addLigneVente(\EEM\VenteBundle\Entity\LigneVente $ligneVente)
    {
        $this->ligneVentes[] = $ligneVente;
        $ligneVente->setVente($this);

        return $this;
    }

    /**
     * Remove ligneVente
     *
     * @param \EEM\VenteBundle\Entity\LigneVente $ligneVente
     */
    public function removeLigneVente(\EEM\VenteBundle\Entity\LigneVente $ligneVente)
    {
        $this->ligneVentes->removeElement($ligneVente);
    }

    /**
     * Get ligneVentes
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getLigneVentes()
    {
        return $this->ligneVentes;
    }

    /**
     * Set dateVente
     *
     * @param \DateTime $dateVente
     *
     * @return Vente
     */
    public function setDateVente($dateVente)
    {
        $this->dateVente = $dateVente;

        return $this;
    }

    /**
     * Get dateVente
     *
     * @return \DateTime
     */
    public function getDateVente()
    {
        return $this->dateVente;
    }

    /**
     * Set chiffreRestant
     *
     * @param string $chiffreRestant
     *
     * @return Vente
     */
    public function setChiffreRestant($chiffreRestant)
    {
        $this->chiffreRestant = $chiffreRestant;

        return $this;
    }

    /**
     * Get chiffreRestant
     *
     * @return string
     */
    public function getChiffreRestant()
    {
        return $this->chiffreRestant;
    }

    /**
     * Set benefice
     *
     * @param string $benefice
     *
     * @return Vente
     */
    public function setBenefice($benefice)
    {
        $this->benefice = $benefice;

        return $this;
    }

    /**
     * Get benefice
     *
     * @return string
     */
    public function getBenefice()
    {
        return $this->benefice;
    }

    /**
     * Set chiffreRestantGros
     *
     * @param string $chiffreRestantGros
     *
     * @return Vente
     */
    public function setChiffreRestantGros($chiffreRestantGros)
    {
        $this->chiffreRestantGros = $chiffreRestantGros;

        return $this;
    }

    /**
     * Get chiffreRestantGros
     *
     * @return string
     */
    public function getChiffreRestantGros()
    {
        return $this->chiffreRestantGros;
    }


    /**
     * Set type
     *
     * @param string $type
     *
     * @return Vente
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type
     *
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set client
     *
     * @param \EEM\TraiteBundle\Entity\Client $client
     *
     * @return Vente
     */
    public function setClient(\EEM\TraiteBundle\Entity\Client $client = null)
    {
        $this->client = $client;

        return $this;
    }

    /**
     * Get client
     *
     * @return \EEM\TraiteBundle\Entity\Client
     */
    public function getClient()
    {
        return $this->client;
    }

    /**
     * Set valider
     *
     * @param boolean $valider
     *
     * @return Vente
     */
    public function setValider($valider)
    {
        $this->valider = $valider;

        return $this;
    }

    /**
     * Get valider
     *
     * @return boolean
     */
    public function getValider()
    {
        return $this->valider;
    }

    /**
     * Set piece
     *
     * @param \EEM\PieceBundle\Entity\Piece $piece
     *
     * @return Vente
     */
    public function setPiece(\EEM\PieceBundle\Entity\Piece $piece = null)
    {
        $this->piece = $piece;

        return $this;
    }

    /**
     * Get piece
     *
     * @return \EEM\PieceBundle\Entity\Piece
     */
    public function getPiece()
    {
        return $this->piece;
    }
}

Zerion Mini Shell 1.0