134 lines
2.5 KiB
PHP
134 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="privacy_policy")
|
|
*/
|
|
class PrivacyPolicy
|
|
{
|
|
// unique id
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
// name
|
|
/**
|
|
* @ORM\Column(type="string", length=80)
|
|
* @Assert\NotBlank()
|
|
*/
|
|
protected $name;
|
|
|
|
// content
|
|
/**
|
|
* @ORM\Column(type="text")
|
|
*/
|
|
protected $content;
|
|
|
|
// link to mobile app customers
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="Customer", mappedBy="privpol_mobile_app")
|
|
*/
|
|
protected $cust_mobile_app;
|
|
|
|
// link to third party customers
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="Customer", mappedBy="privpol_third_party")
|
|
*/
|
|
protected $cust_third_party;
|
|
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="Customer", mappedBy="privpol_promo")
|
|
*/
|
|
protected $cust_promo;
|
|
|
|
/**
|
|
* @ORM\OneToMany(targetEntity="Warranty", mappedBy="privacy_policy")
|
|
*/
|
|
protected $warranties;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->warranties = new ArrayCollection();
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
return $this;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setContent($content)
|
|
{
|
|
$this->content = $content;
|
|
return $this;
|
|
}
|
|
|
|
public function getContent()
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
public function setCustMobileApp($cust_mobile_app)
|
|
{
|
|
$this->cust_mobile_app = $cust_mobile_app;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustMobileApp()
|
|
{
|
|
return $this->cust_mobile_app;
|
|
}
|
|
|
|
public function setCustThirdParty($cust_third_party)
|
|
{
|
|
$this->cust_third_party = $cust_third_party;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustThirdParty()
|
|
{
|
|
return $this->cust_third_party;
|
|
}
|
|
|
|
public function setCustPromo($cust_promo)
|
|
{
|
|
$this->cust_promo = $cust_promo;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustPromo()
|
|
{
|
|
return $this->cust_promo;
|
|
}
|
|
|
|
public function addWarranty(Warranty $warranty)
|
|
{
|
|
$this->warranties[] = $warranty;
|
|
return $this;
|
|
}
|
|
|
|
public function getWarrantiess()
|
|
{
|
|
return $this->warranties;
|
|
}
|
|
}
|
|
|