src/Entity/Accessory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AccessoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=AccessoryRepository::class)
  7.  */
  8. class Accessory extends Product
  9. {
  10.     /**
  11.      * @ORM\Column(type="string", length=255, nullable=true)
  12.      */
  13.     private $state;
  14.     /**
  15.      * @ORM\Column(type="smallint")
  16.      */
  17.     private $weight;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $img;
  22.     public function getState(): ?string
  23.     {
  24.         return $this->state;
  25.     }
  26.     public function setState(?string $state): self
  27.     {
  28.         $this->state $state;
  29.         return $this;
  30.     }
  31.     public function getImg(): ?string
  32.     {
  33.         return $this->img;
  34.     }
  35.     public function setImg(?string $img): self
  36.     {
  37.         $this->img $img;
  38.         return $this;
  39.     }
  40. }