<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\EstadoAspectoRepository") * @ORM\Table(name="estado_aspecto") */class EstadoAspecto extends EstadoAbstract
{
/**
* @ORM\OneToMany(targetEntity="App\Entity\Reloj", mappedBy="aspecto") */ private $relojes;
/**
* @ORM\OneToMany(targetEntity="App\Entity\DetalleOperacion", mappedBy="relojAspecto") */ protected $detalleOperaciones;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\ActividadAbstract::class, mappedBy="relojAspecto") */ private $actividades;
/**
* @ORM\OneToMany(targetEntity="App\Entity\ValoracionesRelojes", mappedBy="relojAspecto") */ protected $valoracionesRelojes;
public function __construct()
{ $this->relojes = new ArrayCollection();
$this->detalleOperaciones = new ArrayCollection();
$this->valoracionesRelojes = new ArrayCollection();
$this->actividades = new ArrayCollection();
} /**
* @return Collection<int, Reloj> */ public function getRelojes(): Collection
{
return $this->relojes;
} public function addReloje(Reloj $reloje): self
{
if (!$this->relojes->contains($reloje)) {
$this->relojes->add($reloje);
$reloje->setAspecto($this);
} return $this;
} public function removeReloje(Reloj $reloje): self
{
if ($this->relojes->removeElement($reloje)) {
// set the owning side to null (unless already changed)
if ($reloje->getAspecto() === $this) {
$reloje->setAspecto(null);
} } return $this;
} /**
* @return Collection<int, DetalleOperacion> */ public function getDetalleOperaciones(): Collection
{
return $this->detalleOperaciones;
} public function addDetalleOperacione(DetalleOperacion $detalleOperacione): self
{
if (!$this->detalleOperaciones->contains($detalleOperacione)) {
$this->detalleOperaciones->add($detalleOperacione);
$detalleOperacione->setRelojAspecto($this);
} return $this;
} public function removeDetalleOperacione(DetalleOperacion $detalleOperacione): self
{
if ($this->detalleOperaciones->removeElement($detalleOperacione)) {
// set the owning side to null (unless already changed)
if ($detalleOperacione->getRelojAspecto() === $this) {
$detalleOperacione->setRelojAspecto(null);
} } return $this;
} /**
* @return Collection|ValoracionesRelojes[] */ public function getValoracionesRelojes(): Collection
{
return $this->valoracionesRelojes;
} public function addValoracionesReloje(ValoracionesRelojes $valoracionesReloje): self
{
if (!$this->valoracionesRelojes->contains($valoracionesReloje)) {
$this->valoracionesRelojes[] = $valoracionesReloje;
$valoracionesReloje->setRelojAspecto($this);
} return $this;
} public function removeValoracionesReloje(ValoracionesRelojes $valoracionesReloje): self
{
if ($this->valoracionesRelojes->removeElement($valoracionesReloje)) {
// set the owning side to null (unless already changed)
if ($valoracionesReloje->getRelojAspecto() === $this) {
$valoracionesReloje->setRelojAspecto(null);
} } return $this;
} /**
* @return Collection<int, ActividadAbstract> */ public function getActividades(): Collection
{
return $this->actividades;
} public function addActividade(ActividadAbstract $actividade): static
{ if (!$this->actividades->contains($actividade)) {
$this->actividades->add($actividade);
$actividade->setRelojAspecto($this);
} return $this;
} public function removeActividade(ActividadAbstract $actividade): static
{ if ($this->actividades->removeElement($actividade)) {
// set the owning side to null (unless already changed)
if ($actividade->getRelojAspecto() === $this) {
$actividade->setRelojAspecto(null);
} } return $this;
}}