src/Entity/ProductsAnalysis.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductsAnalysisRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProductsAnalysisRepository::class)]
  6. class ProductsAnalysis
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntity'App\Entity\Products'inversedBy'analysis')]
  13.     private ?Products $products;
  14.     #[ORM\Column(name'name'type'string'length255nullablefalse)]
  15.     private ?string $name;
  16.     #[ORM\Column(name'link'type'string'length255nullablefalse)]
  17.     private ?string $link;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     /**
  23.      * @return string|null
  24.      */
  25.     public function getName(): ?string
  26.     {
  27.         return $this->name;
  28.     }
  29.     /**
  30.      * @param string|null $name
  31.      */
  32.     public function setName(?string $name): void
  33.     {
  34.         $this->name $name;
  35.     }
  36.     /**
  37.      * @return string|null
  38.      */
  39.     public function getLink(): ?string
  40.     {
  41.         return $this->link;
  42.     }
  43.     /**
  44.      * @param string|null $link
  45.      */
  46.     public function setLink(?string $link): void
  47.     {
  48.         $this->link $link;
  49.     }
  50.     /**
  51.      * @return Products|null
  52.      */
  53.     public function getProducts(): ?Products
  54.     {
  55.         return $this->products;
  56.     }
  57.     /**
  58.      * @param Products|null $products
  59.      */
  60.     public function setProducts(?Products $products): void
  61.     {
  62.         $this->products $products;
  63.     }
  64. }