src/Entity/Operator.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Notice;
  5. use App\Entity\Skoda;
  6. /** @ORM\Table(name="es_operator")
  7.  * @ORM\Entity() 
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class Operator {
  11.     /** @ORM\Column(name="id", type="integer")     
  12.      * @ORM\Id     
  13.      * @ORM\GeneratedValue(strategy="AUTO")     */
  14.     protected $id;
  15.     /**
  16.      * Many Operators have one (the same) Notice
  17.      * @ORM\ManyToOne(targetEntity="Notice", inversedBy="operators")
  18.      * @ORM\JoinColumn(name="notice_id", referencedColumnName="id")
  19.      */
  20.     private $notice;
  21.     /**
  22.      * Many Operators have one (the same) Skoda
  23.      * @ORM\ManyToOne(targetEntity="Skoda", inversedBy="operators")
  24.      * @ORM\JoinColumn(name="skoda_id", referencedColumnName="id")
  25.      */
  26.     private $skoda;
  27.     /** @ORM\Column(name="stat", type="string", length=255, nullable=true)     */
  28.     protected $stat;
  29.     /** @ORM\Column(name="n_type", type="string", length=255, nullable=true)     */
  30.     protected $type;
  31.     /** @ORM\Column(name="pid", type="integer", nullable=true)     */
  32.     protected $pid;
  33.     /** @ORM\Column(name="nazov", type="string", length=255, nullable=true)     */
  34.     protected $nazov;
  35.     /** @ORM\Column(name="adresa", type="string", length=255, nullable=true)     */
  36.     protected $adresa;
  37.     /** @ORM\Column(name="zastupca", type="string", length=255, nullable=true)     */
  38.     protected $zastupca;
  39.     /** @ORM\Column(name="telefon", type="string", length=255, nullable=true)     */
  40.     protected $telefon;
  41.     /** @ORM\Column(name="fax", type="string", length=255, nullable=true)     */
  42.     protected $fax;
  43.     /** @ORM\Column(name="email", type="string", length=255, nullable=true)     */
  44.     protected $email;
  45.     
  46.     /** @ORM\Column(name="sk_nace", type="string", length=255, nullable=true)     */
  47.     protected $skNace;
  48.     /** @ORM\Column(name="ico", type="string", length=255, nullable=true)     */
  49.     protected $ico;
  50.     
  51.     /**
  52.      * @ORM\Column(name="created", type="datetime")
  53.      */
  54.     protected $created;
  55.     /**
  56.      * @ORM\Column(name="edited", type="datetime")
  57.      */
  58.     protected $edited;
  59.     
  60.     /** 
  61.      * @ORM\PrePersist()
  62.      */
  63.     public function preCreated() {
  64.         $this->created = new \DateTime('now');
  65.     }
  66.     /** 
  67.      * @ORM\PrePersist()
  68.      * @ORM\PreUpdate() 
  69.      */
  70.     public function preEdited() {
  71.         $this->edited = new \DateTime('now');
  72.     }
  73.     
  74.     /**
  75.      * @param notice $notice
  76.      * @return Notice
  77.      */
  78.     public function setNotice(Notice $notice null) {
  79.         $this->notice $notice;
  80.         return $this;
  81.     }
  82.     /**
  83.      * @return Notice
  84.      */
  85.     public function getNotice() {
  86.         return $this->notice;
  87.     }
  88.     /**
  89.      * Get id
  90.      *
  91.      * @return integer
  92.      */
  93.     public function getId() {
  94.         return $this->id;
  95.     }
  96.     /**
  97.      * Set stat
  98.      *
  99.      * @param string $stat
  100.      *
  101.      * @return Loc
  102.      */
  103.     public function setStat($stat) {
  104.         $this->stat $stat;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get stat
  109.      *
  110.      * @return string
  111.      */
  112.     public function getStat() {
  113.         return $this->stat;
  114.     }
  115.     /**
  116.      * Set created
  117.      *
  118.      * @param \DateTime $created
  119.      *
  120.      * @return Doc
  121.      */
  122.     public function setCreated($created) {
  123.         $this->created $created;
  124.         return $this;
  125.     }
  126.     /**
  127.      * Get created
  128.      *
  129.      * @return \DateTime
  130.      */
  131.     public function getCreated() {
  132.         return $this->created;
  133.     }
  134.     /**
  135.      * Set nazov
  136.      *
  137.      * @param string $nazov
  138.      *
  139.      * @return Operator
  140.      */
  141.     public function setNazov($nazov) {
  142.         $this->nazov $nazov;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Get nazov
  147.      *
  148.      * @return string
  149.      */
  150.     public function getNazov() {
  151.         return $this->nazov;
  152.     }
  153.     /**
  154.      * Set adresa
  155.      *
  156.      * @param string $adresa
  157.      *
  158.      * @return Operator
  159.      */
  160.     public function setAdresa($adresa) {
  161.         $this->adresa $adresa;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get adresa
  166.      *
  167.      * @return string
  168.      */
  169.     public function getAdresa() {
  170.         return $this->adresa;
  171.     }
  172.     /**
  173.      * Set zastupca
  174.      *
  175.      * @param string $zastupca
  176.      *
  177.      * @return Operator
  178.      */
  179.     public function setZastupca($zastupca) {
  180.         $this->zastupca $zastupca;
  181.         return $this;
  182.     }
  183.     /**
  184.      * Get zastupca
  185.      *
  186.      * @return string
  187.      */
  188.     public function getZastupca() {
  189.         return $this->zastupca;
  190.     }
  191.     /**
  192.      * Set telefon
  193.      *
  194.      * @param string $telefon
  195.      *
  196.      * @return Operator
  197.      */
  198.     public function setTelefon($telefon) {
  199.         $this->telefon $telefon;
  200.         return $this;
  201.     }
  202.     /**
  203.      * Get telefon
  204.      *
  205.      * @return string
  206.      */
  207.     public function getTelefon() {
  208.         return $this->telefon;
  209.     }
  210.     /**
  211.      * Set fax
  212.      *
  213.      * @param string $fax
  214.      *
  215.      * @return Operator
  216.      */
  217.     public function setFax($fax) {
  218.         $this->fax $fax;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get fax
  223.      *
  224.      * @return string
  225.      */
  226.     public function getFax() {
  227.         return $this->fax;
  228.     }
  229.     /**
  230.      * Set email
  231.      *
  232.      * @param string $email
  233.      *
  234.      * @return Operator
  235.      */
  236.     public function setEmail($email) {
  237.         $this->email $email;
  238.         return $this;
  239.     }
  240.     /**
  241.      * Get email
  242.      *
  243.      * @return string
  244.      */
  245.     public function getEmail() {
  246.         return $this->email;
  247.     }
  248.     /**
  249.      * Set type
  250.      *
  251.      * @param string $type
  252.      *
  253.      * @return Operator
  254.      */
  255.     public function setType($type) {
  256.         $this->type $type;
  257.         return $this;
  258.     }
  259.     /**
  260.      * Get type
  261.      *
  262.      * @return string
  263.      */
  264.     public function getType() {
  265.         return $this->type;
  266.     }
  267.     /**
  268.      * Set pid
  269.      *
  270.      * @param integer $pid
  271.      *
  272.      * @return Operator
  273.      */
  274.     public function setPid($pid) {
  275.         $this->pid $pid;
  276.         return $this;
  277.     }
  278.     /**
  279.      * Get pid
  280.      *
  281.      * @return integer
  282.      */
  283.     public function getPid() {
  284.         return $this->pid;
  285.     }
  286.     /**
  287.      * Set skoda
  288.      *
  289.      * @param \App\Entity\Skoda $skoda
  290.      *
  291.      * @return Operator
  292.      */
  293.     public function setSkoda(\App\Entity\Skoda $skoda null)
  294.     {
  295.         $this->skoda $skoda;
  296.         return $this;
  297.     }
  298.     /**
  299.      * Get skoda
  300.      *
  301.      * @return \App\Entity\Skoda
  302.      */
  303.     public function getSkoda()
  304.     {
  305.         return $this->skoda;
  306.     }
  307.     /**
  308.      * Set skNace
  309.      *
  310.      * @param string $skNace
  311.      *
  312.      * @return Operator
  313.      */
  314.     public function setSkNace($skNace)
  315.     {
  316.         $this->skNace $skNace;
  317.         return $this;
  318.     }
  319.     /**
  320.      * Get skNace
  321.      *
  322.      * @return string
  323.      */
  324.     public function getSkNace()
  325.     {
  326.         return $this->skNace;
  327.     }
  328.     /**
  329.      * Set ico
  330.      *
  331.      * @param string $ico
  332.      *
  333.      * @return Operator
  334.      */
  335.     public function setIco($ico)
  336.     {
  337.         $this->ico $ico;
  338.         return $this;
  339.     }
  340.     /**
  341.      * Get ico
  342.      *
  343.      * @return string
  344.      */
  345.     public function getIco()
  346.     {
  347.         return $this->ico;
  348.     }
  349.     /**
  350.      * Set edited
  351.      *
  352.      * @param \DateTime $edited
  353.      *
  354.      * @return Operator
  355.      */
  356.     public function setEdited($edited)
  357.     {
  358.         $this->edited $edited;
  359.         return $this;
  360.     }
  361.     /**
  362.      * Get edited
  363.      *
  364.      * @return \DateTime
  365.      */
  366.     public function getEdited()
  367.     {
  368.         return $this->edited;
  369.     }
  370. }