<?php
/**
* Language class represents model of ShoppingWindow entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\ShoppingWindowRepo")
* @ORM\Table(name="shopping_window")
*/
class ShoppingWindow implements Translatable
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $shoppingWindowId=0;
/**
* @ORM\Column(type="string", length=100)
*/
protected $shoppingWindowTitle;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $shoppingWindowDescription;
/**
* @ORM\Column(type="string", length=255)
*/
protected $shoppingWindowLinkUrl;
/**
* @ORM\Column(type="integer")
*/
protected $userId=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $eshopLinkType='product';
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $priority=1;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $status='new';
/**
* @ORM\Column(type="date", nullable=true, nullable=true)
*/
protected $dateInserted;
/**
* @ORM\Column(type="date", nullable=true, nullable=true)
*/
protected $dateLastControl;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $notes;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $adminUserId=0;
/**
* @ORM\ManyToOne(targetEntity="Product")
* @ORM\JoinColumn(name="product_id", referencedColumnName="product_id")
*/
protected $product;
/**
* Get shoppingWindowId
*
* @return integer
*/
public function getShoppingWindowId()
{
return $this->shoppingWindowId;
}
/**
* Set shoppingWindowTitle
*
* @param string $shoppingWindowTitle
*
* @return ShoppingWindow
*/
public function setShoppingWindowTitle($shoppingWindowTitle)
{
$this->shoppingWindowTitle = $shoppingWindowTitle;
return $this;
}
/**
* Get shoppingWindowTitle
*
* @return string
*/
public function getShoppingWindowTitle()
{
return $this->shoppingWindowTitle;
}
/**
* Set shoppingWindowDescription
*
* @param string $shoppingWindowDescription
*
* @return ShoppingWindow
*/
public function setShoppingWindowDescription($shoppingWindowDescription)
{
$this->shoppingWindowDescription = $shoppingWindowDescription;
return $this;
}
/**
* Get shoppingWindowDescription
*
* @return string
*/
public function getShoppingWindowDescription()
{
return $this->shoppingWindowDescription;
}
/**
* Set shoppingWindowLinkUrl
*
* @param string $shoppingWindowLinkUrl
*
* @return ShoppingWindow
*/
public function setShoppingWindowLinkUrl($shoppingWindowLinkUrl)
{
$this->shoppingWindowLinkUrl = $shoppingWindowLinkUrl;
return $this;
}
/**
* Get shoppingWindowLinkUrl
*
* @return string
*/
public function getShoppingWindowLinkUrl()
{
return $this->shoppingWindowLinkUrl;
}
/**
* Set userId
*
* @param integer $userId
*
* @return ShoppingWindow
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId
*
* @return integer
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set eshopLinkType
*
* @param string $eshopLinkType
*
* @return ShoppingWindow
*/
public function setEshopLinkType($eshopLinkType)
{
$this->eshopLinkType = $eshopLinkType;
return $this;
}
/**
* Get eshopLinkType
*
* @return string
*/
public function getEshopLinkType()
{
return $this->eshopLinkType;
}
/**
* Set priority
*
* @param integer $priority
*
* @return ShoppingWindow
*/
public function setPriority($priority)
{
$this->priority = $priority;
return $this;
}
/**
* Get priority
*
* @return integer
*/
public function getPriority()
{
return $this->priority;
}
/**
* Set status
*
* @param string $status
*
* @return ShoppingWindow
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status
*
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Set dateInserted
*
* @param \DateTime $dateInserted
*
* @return ShoppingWindow
*/
public function setDateInserted($dateInserted)
{
$this->dateInserted = $dateInserted;
return $this;
}
/**
* Get dateInserted
*
* @return \DateTime
*/
public function getDateInserted()
{
return $this->dateInserted;
}
/**
* Set dateLastControl
*
* @param \DateTime $dateLastControl
*
* @return ShoppingWindow
*/
public function setDateLastControl($dateLastControl)
{
$this->dateLastControl = $dateLastControl;
return $this;
}
/**
* Get dateLastControl
*
* @return \DateTime
*/
public function getDateLastControl()
{
return $this->dateLastControl;
}
/**
* Set notes
*
* @param string $notes
*
* @return ShoppingWindow
*/
public function setNotes($notes)
{
$this->notes = $notes;
return $this;
}
/**
* Get notes
*
* @return string
*/
public function getNotes()
{
return $this->notes;
}
/**
* Set adminUserId
*
* @param integer $adminUserId
*
* @return ShoppingWindow
*/
public function setAdminUserId($adminUserId)
{
$this->adminUserId = $adminUserId;
return $this;
}
/**
* Get adminUserId
*
* @return integer
*/
public function getAdminUserId()
{
return $this->adminUserId;
}
/**
* Set product
*
* @param \App\Entity\Product $product
*
* @return ShoppingWindow
*/
public function setProduct(\App\Entity\Product $product = null)
{
$this->product = $product;
return $this;
}
/**
* Get product
*
* @return \App\Entity\Product
*/
public function getProduct()
{
return $this->product;
}
}