src/Entity/Photo.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PhotoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Photo
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\PhotoRepository")
  9.  */
  10. #[ORM\Entity(repositoryClassPhotoRepository::class)]
  11. #[ORM\Table(name'photo')]
  12. class Photo {
  13.     #[ORM\Id]
  14.     #[ORM\Column(type"integer")]
  15.     #[ORM\GeneratedValue(strategy"AUTO")]
  16.     private ?int $id;
  17.     #[ORM\Column(type"boolean")]
  18.     private bool $isDeleted false;
  19.     public function __toString() {
  20.         return "#" $this->id;
  21.     }
  22.     /**
  23.      * Get id
  24.      *
  25.      * @return int
  26.      */
  27.     public function getId() {
  28.         return $this->id;
  29.     }
  30.     /**
  31.      * Set isDeleted
  32.      *
  33.      * @param boolean $isDeleted
  34.      *
  35.      * @return Photo
  36.      */
  37.     public function setIsDeleted($isDeleted)
  38.     {
  39.         $this->isDeleted $isDeleted;
  40.         return $this;
  41.     }
  42.     /**
  43.      * Get isDeleted
  44.      *
  45.      * @return boolean
  46.      */
  47.     public function getIsDeleted()
  48.     {
  49.         return $this->isDeleted;
  50.     }
  51. }