<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\SongStationRepository")
*/
class SongStation
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Song", inversedBy="songStations")
* @ORM\JoinColumn(nullable=false)
*/
private $song;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Station", inversedBy="songStations")
* @ORM\JoinColumn(nullable=false)
*/
private $station;
/**
* @ORM\Column(type="integer")
*/
private $mediaId;
public function getId(): ?int
{
return $this->id;
}
public function getSong(): ?Song
{
return $this->song;
}
public function setSong(?Song $song): self
{
$this->song = $song;
return $this;
}
public function getStation(): ?Station
{
return $this->station;
}
public function setStation(?Station $station): self
{
$this->station = $station;
return $this;
}
public function getMediaId(): ?int
{
return $this->mediaId;
}
public function setMediaId(int $mediaId): self
{
$this->mediaId = $mediaId;
return $this;
}
}