src/Entity/AcuerdoNivelServicio.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AcuerdoNivelServicioRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=AcuerdoNivelServicioRepository::class)
  9. */
  10. class AcuerdoNivelServicio
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="string", length=255)
  20. */
  21. private $nombre;
  22. /**
  23. * @ORM\Column(type="integer", nullable=true)
  24. */
  25. private $usuariosContratados;
  26. /**
  27. * @ORM\Column(type="integer", nullable=true)
  28. */
  29. private $tokens_contratados;
  30. /**
  31. * @ORM\Column(type="string", length=255, nullable=true)
  32. */
  33. private $horario;
  34. /**
  35. * @ORM\Column(type="bigint", nullable=true)
  36. */
  37. private $soporteBasicoMes;
  38. /**
  39. * @ORM\Column(type="integer", nullable=true)
  40. */
  41. private $costoHora;
  42. /**
  43. * @ORM\OneToMany(targetEntity=Tiempo::class, mappedBy="AcuerdoNivelServicio", orphanRemoval=true)
  44. */
  45. private $tiempos;
  46. /**
  47. * @ORM\OneToMany(targetEntity=Cliente::class, mappedBy="AcuerdoNivelServicio")
  48. */
  49. private $clientes;
  50. public function __construct()
  51. {
  52. $this->tiempos = new ArrayCollection();
  53. $this->clientes = new ArrayCollection();
  54. }
  55. public function getId(): ?int
  56. {
  57. return $this->id;
  58. }
  59. public function getNombre(): ?string
  60. {
  61. return $this->nombre;
  62. }
  63. public function setNombre(string $nombre): self
  64. {
  65. $this->nombre = $nombre;
  66. return $this;
  67. }
  68. public function getUsuariosContratados(): ?int
  69. {
  70. return $this->usuariosContratados;
  71. }
  72. public function setUsuariosContratados(?int $usuariosContratados): self
  73. {
  74. $this->usuariosContratados = $usuariosContratados;
  75. return $this;
  76. }
  77. public function getTokensContratados(): ?int
  78. {
  79. return $this->tokens_contratados;
  80. }
  81. public function setTokensContratados(?int $tokens_contratados): self
  82. {
  83. $this->tokens_contratados = $tokens_contratados;
  84. return $this;
  85. }
  86. public function getHorario(): ?string
  87. {
  88. return $this->horario;
  89. }
  90. public function setHorario(?string $horario): self
  91. {
  92. $this->horario = $horario;
  93. return $this;
  94. }
  95. public function getSoporteBasicoMes(): ?string
  96. {
  97. return $this->soporteBasicoMes;
  98. }
  99. public function setSoporteBasicoMes(?string $soporteBasicoMes): self
  100. {
  101. $this->soporteBasicoMes = $soporteBasicoMes;
  102. return $this;
  103. }
  104. public function getCostoHora(): ?int
  105. {
  106. return $this->costoHora;
  107. }
  108. public function setCostoHora(?int $costoHora): self
  109. {
  110. $this->costoHora = $costoHora;
  111. return $this;
  112. }
  113. /**
  114. * @return Collection<int, Tiempo>
  115. */
  116. public function getTiempos(): Collection
  117. {
  118. return $this->tiempos;
  119. }
  120. public function addTiempo(Tiempo $tiempo): self
  121. {
  122. if (!$this->tiempos->contains($tiempo)) {
  123. $this->tiempos[] = $tiempo;
  124. $tiempo->setAcuerdoNivelServicio($this);
  125. }
  126. return $this;
  127. }
  128. public function removeTiempo(Tiempo $tiempo): self
  129. {
  130. if ($this->tiempos->removeElement($tiempo)) {
  131. // set the owning side to null (unless already changed)
  132. if ($tiempo->getAcuerdoNivelServicio() === $this) {
  133. $tiempo->setAcuerdoNivelServicio(null);
  134. }
  135. }
  136. return $this;
  137. }
  138. /**
  139. * @return Collection<int, Cliente>
  140. */
  141. public function getClientes(): Collection
  142. {
  143. return $this->clientes;
  144. }
  145. public function addCliente(Cliente $cliente): self
  146. {
  147. if (!$this->clientes->contains($cliente)) {
  148. $this->clientes[] = $cliente;
  149. $cliente->setAcuerdoNivelServicio($this);
  150. }
  151. return $this;
  152. }
  153. public function removeCliente(Cliente $cliente): self
  154. {
  155. if ($this->clientes->removeElement($cliente)) {
  156. // set the owning side to null (unless already changed)
  157. if ($cliente->getAcuerdoNivelServicio() === $this) {
  158. $cliente->setAcuerdoNivelServicio(null);
  159. }
  160. }
  161. return $this;
  162. }
  163. }