caisse-bliss/src/AppBundle/Entity/SellRecord.php

89 lines
1.2 KiB
PHP
Raw Normal View History

2018-03-15 16:04:00 +01:00
<?php
2018-04-04 17:42:27 +02:00
namespace AppBundle\Entity;
2018-03-15 16:04:00 +01:00
use Doctrine\ORM\Mapping as ORM;
/**
2018-04-04 17:42:27 +02:00
* @ORM\Entity(repositoryClass="AppBundle\Repository\SellRecordRepository")
2018-03-15 16:04:00 +01:00
*/
class SellRecord {
/**
2018-03-15 16:18:06 +01:00
* @ORM\ManyToOne(targetEntity="Product", inversedBy="sellRecords")
2018-03-15 16:04:00 +01:00
*/
2018-03-15 16:18:06 +01:00
private $products;
2018-03-15 16:04:00 +01:00
/**
* @ORM\Id
* @ORM\GeneratedValue
2018-04-05 14:21:32 +02:00
* @ORM\Column(name="id")
*/
private $id;
/**
2018-03-15 16:04:00 +01:00
* @ORM\Column(type="datetime")
*/
private $date;
2018-04-05 14:21:32 +02:00
/**
* @ORM\Column(type="decimal", scale=2, nullable=true)
*/
private $amount;
/**
* @return mixed
*/
public function getAmount() {
return $this->amount;
}
/**
* @param mixed $amount
*/
public function setAmount( $amount ) {
$this->amount = $amount;
}
2018-03-15 16:04:00 +01:00
/**
* @return mixed
*/
public function getId() {
return $this->id;
}
/**
* @param mixed $id
*/
public function setId( $id ) {
$this->id = $id;
}
/**
* @return mixed
*/
2018-03-15 16:18:06 +01:00
public function getProducts() {
return $this->products;
2018-03-15 16:04:00 +01:00
}
/**
2018-03-15 16:18:06 +01:00
* @param mixed $products
2018-03-15 16:04:00 +01:00
*/
2018-03-15 16:18:06 +01:00
public function setProducts( $products ) {
$this->products = $products;
2018-03-15 16:04:00 +01:00
}
/**
* @return mixed
*/
public function getDate() {
return $this->date;
}
/**
2018-04-05 14:21:32 +02:00
* @param \DateTime $date
2018-03-15 16:04:00 +01:00
*/
2018-04-05 14:21:32 +02:00
public function setDate( \DateTime $date ) {
2018-03-15 16:04:00 +01:00
$this->date = $date;
}
}