src/Entity/CabeceraStatus.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CabeceraStatusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CabeceraStatusRepository::class)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  */
  9. class CabeceraStatus
  10. {
  11.     use Timestamp;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=user::class)
  20.      */
  21.     private $User;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Cabecera::class, inversedBy="CabeceraStatus")
  24.      */
  25.     private $Cabecera;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $Estado;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getUser(): ?user
  35.     {
  36.         return $this->User;
  37.     }
  38.     public function setUser(?user $User): self
  39.     {
  40.         $this->User $User;
  41.         return $this;
  42.     }
  43.     public function getCabecera(): ?Cabecera
  44.     {
  45.         return $this->Cabecera;
  46.     }
  47.     public function setCabecera(?Cabecera $Cabecera): self
  48.     {
  49.         $this->Cabecera $Cabecera;
  50.         return $this;
  51.     }
  52.     public function getEstado(): ?string
  53.     {
  54.         return $this->Estado;
  55.     }
  56.     public function setEstado(string $Estado): self
  57.     {
  58.         $this->Estado $Estado;
  59.         return $this;
  60.     }
  61. }