src/Entity/Shop.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Security\Core\User\UserInterface;
  5. /**
  6.  * Shop
  7.  *
  8.  * @ORM\Table(name="shops")
  9.  * @ORM\Entity
  10.  */
  11. class Shop
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $idShop;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="name", type="string", length=128, nullable=false, options={"default"="''"})
  25.      */
  26.     private $name '\'\'';
  27.     /**
  28.      * @var bool
  29.      *
  30.      * @ORM\Column(name="active", type="boolean", nullable=false)
  31.      */
  32.     private $active '0';
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="currency", type="string", length=3, nullable=false, options={"default"="'EUR'"})
  37.      */
  38.     private $currency '\'\'';
  39.     public function getIdShop(): ?int
  40.     {
  41.         return $this->idShop;
  42.     }
  43.     public function getName(): ?string
  44.     {
  45.         return $this->name;
  46.     }
  47.     public function getActive(): ?bool
  48.     {
  49.         return $this->active;
  50.     }
  51. }