src/Entity/TimsStation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\TimsStationRepository")
  6.  * @ORM\Table(name="tims_station")
  7.  */
  8. class TimsStation {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue(strategy="AUTO")
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string")
  17.      */
  18.     private $type;
  19.     /**
  20.      * @var Station
  21.      *
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\Station")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="station", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private Station $station;
  28.     /**
  29.      * @ORM\Column(type="string")
  30.      */
  31.     private $client;
  32.     /**
  33.      * @ORM\Column(type="string")
  34.      */
  35.     private $supplierCode;
  36.     /**
  37.      * @ORM\Column(type="datetime")
  38.      */
  39.     private $createdAt;
  40.     /**
  41.      * @return mixed
  42.      */
  43.     public function getId()
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * @param mixed $id
  49.      */
  50.     public function setId($id): void
  51.     {
  52.         $this->id $id;
  53.     }
  54.     /**
  55.      * @return mixed
  56.      */
  57.     public function getType()
  58.     {
  59.         return $this->type;
  60.     }
  61.     /**
  62.      * @param mixed $type
  63.      */
  64.     public function setType($type): void
  65.     {
  66.         $this->type $type;
  67.     }
  68.     /**
  69.      * @return Station
  70.      */
  71.     public function getStation(): Station
  72.     {
  73.         return $this->station;
  74.     }
  75.     /**
  76.      * @param Station $station
  77.      */
  78.     public function setStation(Station $station): void
  79.     {
  80.         $this->station $station;
  81.     }
  82.     /**
  83.      * @return mixed
  84.      */
  85.     public function getClient()
  86.     {
  87.         return $this->client;
  88.     }
  89.     /**
  90.      * @param mixed $client
  91.      */
  92.     public function setClient($client): void
  93.     {
  94.         $this->client $client;
  95.     }
  96.     /**
  97.      * @return mixed
  98.      */
  99.     public function getSupplierCode()
  100.     {
  101.         return $this->supplierCode;
  102.     }
  103.     /**
  104.      * @param mixed $supplierCode
  105.      */
  106.     public function setSupplierCode($supplierCode): void
  107.     {
  108.         $this->supplierCode $supplierCode;
  109.     }
  110.     /**
  111.      * @return mixed
  112.      */
  113.     public function getCreatedAt()
  114.     {
  115.         return $this->createdAt;
  116.     }
  117.     /**
  118.      * @param mixed $createdAt
  119.      */
  120.     public function setCreatedAt($createdAt): void
  121.     {
  122.         $this->createdAt $createdAt;
  123.     }
  124. }