src/Entity/TransaccionAfiliado.php line 21
- <?php
- namespace App\Entity;
- use App\Entity\TransaccionAfiliado;
- use App\Entity\Transaccion;
- use App\Entity\User;
- use App\Entity\UserStats;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- use JMS\Serializer\Annotation as JMS;
- /**
- * TransaccionAfiliado
- *
- * @ORM\Table()
- * @ORM\Entity
- * @ORM\HasLifecycleCallbacks()
- */
- class TransaccionAfiliado
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- * @JMS\Groups({"api-order"})
- */
- protected $id;
- /**
- * @ORM\ManyToOne(targetEntity="User", inversedBy="transaccionesDelAfiliado")
- * @ORM\JoinColumn(name="afiliado", referencedColumnName="id")
- * @JMS\Groups({"api-order"})
- */
- protected $afiliado;
- /**
- * @ORM\ManyToOne(targetEntity="Transaccion")
- * @ORM\JoinColumn(name="transaccion", referencedColumnName="id")
- * @JMS\Groups({"api-order"})
- */
- protected $transaccion;
- /**
- * Sumatorio de los gastos de todas las divisisas SIN gastos de envio
- * @var integer
- *
- * @ORM\Column(name="total_transaccion", type="float" , nullable=true)
- */
- protected $totalTransaccion;
- /**
- * Sumatorio de los gastos de todas las divisisas SIN gastos de envio
- * @var integer
- *
- * @ORM\Column(name="parte_afiliado", type="float", nullable=true)
- */
- protected $parteAfiliado;
- /**
- * Sumatorio de los gastos de todas las divisisas SIN gastos de envio
- * @var integer
- *
- * @ORM\Column(name="tipo_transaccion", type="string")
- */
- protected $tipo_transaccion;
- /**
- * @var string
- *
- * @ORM\Column(name="fechaEntrega", type="datetime", nullable=true)
- * @JMS\Groups({"api-order"})
- */
- protected $fechaEntrega;
- public function __construct() {
- $this->fechaEntrega = new \DateTime();
- }
- public function getId(){
- return $this->id;
- }
- /**
- * Set fechaEntrega
- *
- * @param string $fechaEntrega
- * @return Transaccion
- */
- public function setFechaEntrega($fechaEntrega)
- {
- $this->fechaEntrega = $fechaEntrega;
- return $this;
- }
- /**
- * Get fechaEntrega
- *
- * @return \DateTime
- */
- public function getFechaEntrega()
- {
- return $this->fechaEntrega;
- }
- public function getTipo(){
- return $this->tipo_transaccion;
- }
- public function setTipo($tipo){
- $this->tipo_transaccion = $tipo;
- return $this;
- }
- /**
- * Set afiliado
- *
- * @param string afiliado
- * @return User
- */
- public function setAfiliado($idAfiliado){
- $this->afiliado =$idAfiliado;
- return $this;
- }
- public function getAfiliado(){
- return $this->afiliado;
- }
- /**
- * Set transaccion
- *
- * @param string $transaccion
- * @return Transaccion
- */
- public function setTransaccion($idTransaccion){
- $this->transaccion = $idTransaccion;
- return $this;
- }
- public function getTransaccion(){
- return $this->transaccion;
- }
- /**
- * Set totalTransaccion
- *
- * @param string $totalTransaccion
- * @return Transaccion
- */
- public function setTotalTransaccion($totalTransaccion){
- $this->totalTransaccion = $totalTransaccion;
- return $this;
- }
- public function getTotalTransaccion(){
- return $this->totalTransaccion;
- }
- /**
- * Set parteAfiliado
- *
- * @param string $parteAfiliado
- * @return Transaccion
- */
- public function setParteAfiliado($parteAfiliado){
- $this->parteAfiliado = $parteAfiliado;
- return $this;
- }
- public function getParteAfiliado(){
- return $this->parteAfiliado;
- }
- }