<?php
declare(strict_types=1);
namespace Croisiland\CommonBundle\Entity\Amenity;
use Croisiland\CommonBundle\Entity\Company\Atmosphere;
use Croisiland\CommonBundle\Repository\Amenity\ServiceAtmosphereAssociationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ServiceAtmosphereAssociationRepository::class)
*
* @ORM\Table(
* name="service_atmosphere",
* uniqueConstraints={
*
* @ORM\UniqueConstraint(name="unique_constraint", columns={"service_id", "atmosphere_id"})
* }
* )
*/
class ServiceAtmosphereAssociation
{
/**
* @ORM\Id
*
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*/
private ?int $id = null;
/**
* @ORM\ManyToOne(targetEntity=Service::class, inversedBy="serviceAtmosphereAssociations")
*
* @ORM\JoinColumn(nullable=true)
*/
private ?Service $service = null;
/**
* @ORM\ManyToOne(targetEntity=Atmosphere::class, inversedBy="serviceAtmosphereAssociations")
*
* @ORM\JoinColumn(nullable=true)
*/
private ?Atmosphere $atmosphere = null;
public function getId(): ?int
{
return $this->id;
}
public function getService(): ?Service
{
return $this->service;
}
public function setService(?Service $service): self
{
$this->service = $service;
return $this;
}
public function getAtmosphere(): ?Atmosphere
{
return $this->atmosphere;
}
public function setAtmosphere(?Atmosphere $atmosphere): self
{
$this->atmosphere = $atmosphere;
return $this;
}
}