src/Entity/Appariement.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\AppariementRepository")
  6.  */
  7. class Appariement
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="datetime")
  17.      */
  18.     private $date_saisie;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\SousJacent", inversedBy="appariements")
  21.      */
  22.     private $sous_jacent;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $lia_ref;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $cot_ref;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\Incoterm", inversedBy="appariements")
  33.      */
  34.     private $base;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $cours;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="appariements")
  41.      */
  42.     private $devise;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $spot;
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="appariements")
  49.      */
  50.     private $spot_devise;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $target;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="target_appariements")
  57.      */
  58.     private $target_devise;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $spread;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="spread_appariements")
  65.      */
  66.     private $spread_devise;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $strike;
  71.     /**
  72.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="strike_appariements")
  73.      */
  74.     private $strike_devise;
  75.     /**
  76.      * @ORM\Column(type="datetime")
  77.      */
  78.     private $created_at;
  79.     /**
  80.      * @ORM\ManyToOne(targetEntity="App\Entity\AdminDonneurOrdre", inversedBy="appariementAcheteurs")
  81.      */
  82.     private $acheteur;
  83.     /**
  84.      * @ORM\ManyToOne(targetEntity="App\Entity\AdminDonneurOrdre", inversedBy="appariementVendeurs")
  85.      */
  86.     private $vendeur;
  87.     /**
  88.      * @ORM\Column(type="string", length=255, nullable=true)
  89.      */
  90.     private $origineDestination;
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="appariements")
  93.      */
  94.     private $status;
  95.     public function __construct(){
  96.         $this->created_at = new \DateTime('now');
  97.     }
  98.     public function getId(): ?int
  99.     {
  100.         return $this->id;
  101.     }
  102.     public function getDateSaisie(): ?\DateTimeInterface
  103.     {
  104.         return $this->date_saisie;
  105.     }
  106.     public function setDateSaisie(\DateTimeInterface $date_saisie): self
  107.     {
  108.         $this->date_saisie $date_saisie;
  109.         return $this;
  110.     }
  111.     public function getSousJacent(): ?SousJacent
  112.     {
  113.         return $this->sous_jacent;
  114.     }
  115.     public function setSousJacent(?SousJacent $sous_jacent): self
  116.     {
  117.         $this->sous_jacent $sous_jacent;
  118.         return $this;
  119.     }
  120.     public function getLiaRef(): ?string
  121.     {
  122.         return $this->lia_ref;
  123.     }
  124.     public function setLiaRef(?string $lia_ref): self
  125.     {
  126.         $this->lia_ref $lia_ref;
  127.         return $this;
  128.     }
  129.     public function getCotRef(): ?string
  130.     {
  131.         return $this->cot_ref;
  132.     }
  133.     public function setCotRef(?string $cot_ref): self
  134.     {
  135.         $this->cot_ref $cot_ref;
  136.         return $this;
  137.     }
  138.     public function getBase(): ?Incoterm
  139.     {
  140.         return $this->base;
  141.     }
  142.     public function setBase(?Incoterm $base): self
  143.     {
  144.         $this->base $base;
  145.         return $this;
  146.     }
  147.     public function getCours(): ?string
  148.     {
  149.         return $this->cours;
  150.     }
  151.     public function setCours(?string $cours): self
  152.     {
  153.         $this->cours $cours;
  154.         return $this;
  155.     }
  156.     public function getDevise(): ?Devise
  157.     {
  158.         return $this->devise;
  159.     }
  160.     public function setDevise(?Devise $devise): self
  161.     {
  162.         $this->devise $devise;
  163.         return $this;
  164.     }
  165.     public function getSpot(): ?string
  166.     {
  167.         return $this->spot;
  168.     }
  169.     public function setSpot(?string $spot): self
  170.     {
  171.         $this->spot $spot;
  172.         return $this;
  173.     }
  174.     public function getSpotDevise(): ?Devise
  175.     {
  176.         return $this->spot_devise;
  177.     }
  178.     public function setSpotDevise(?Devise $spot_devise): self
  179.     {
  180.         $this->spot_devise $spot_devise;
  181.         return $this;
  182.     }
  183.     public function getTarget(): ?string
  184.     {
  185.         return $this->target;
  186.     }
  187.     public function setTarget(?string $target): self
  188.     {
  189.         $this->target $target;
  190.         return $this;
  191.     }
  192.     public function getTargetDevise(): ?Devise
  193.     {
  194.         return $this->target_devise;
  195.     }
  196.     public function setTargetDevise(?Devise $target_devise): self
  197.     {
  198.         $this->target_devise $target_devise;
  199.         return $this;
  200.     }
  201.     public function getSpread(): ?string
  202.     {
  203.         return $this->spread;
  204.     }
  205.     public function setSpread(?string $spread): self
  206.     {
  207.         $this->spread $spread;
  208.         return $this;
  209.     }
  210.     public function getSpreadDevise(): ?Devise
  211.     {
  212.         return $this->spread_devise;
  213.     }
  214.     public function setSpreadDevise(?Devise $spread_devise): self
  215.     {
  216.         $this->spread_devise $spread_devise;
  217.         return $this;
  218.     }
  219.     public function getStrike(): ?string
  220.     {
  221.         return $this->strike;
  222.     }
  223.     public function setStrike(?string $strike): self
  224.     {
  225.         $this->strike $strike;
  226.         return $this;
  227.     }
  228.     public function getStrikeDevise(): ?Devise
  229.     {
  230.         return $this->strike_devise;
  231.     }
  232.     public function setStrikeDevise(?Devise $strike_devise): self
  233.     {
  234.         $this->strike_devise $strike_devise;
  235.         return $this;
  236.     }
  237.    
  238.     public function getCreatedAt(): ?\DateTimeInterface
  239.     {
  240.         return $this->created_at;
  241.     }
  242.     public function setCreatedAt(\DateTimeInterface $created_at): self
  243.     {
  244.         $this->created_at $created_at;
  245.         return $this;
  246.     }
  247.     public function getAcheteur(): ?AdminDonneurOrdre
  248.     {
  249.         return $this->acheteur;
  250.     }
  251.     public function setAcheteur(?AdminDonneurOrdre $acheteur): self
  252.     {
  253.         $this->acheteur $acheteur;
  254.         return $this;
  255.     }
  256.     public function getVendeur(): ?AdminDonneurOrdre
  257.     {
  258.         return $this->vendeur;
  259.     }
  260.     public function setVendeur(?AdminDonneurOrdre $vendeur): self
  261.     {
  262.         $this->vendeur $vendeur;
  263.         return $this;
  264.     }
  265.     public function getOrigineDestination(): ?string
  266.     {
  267.         return $this->origineDestination;
  268.     }
  269.     public function setOrigineDestination(?string $origineDestination): self
  270.     {
  271.         $this->origineDestination $origineDestination;
  272.         return $this;
  273.     }
  274.     public function getStatus(): ?Status
  275.     {
  276.         return $this->status;
  277.     }
  278.     public function setStatus(?Status $status): self
  279.     {
  280.         $this->status $status;
  281.         return $this;
  282.     }
  283. }