<?php
namespace App\Entity;
use App\Repository\PortfolioRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PortfolioRepository::class)
*/
class Portfolio
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $image;
/**
* @ORM\ManyToOne(targetEntity=Album::class, inversedBy="portfolios")
*/
private $album;
public function getId(): ?int
{
return $this->id;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
public function getAlbum(): ?Album
{
return $this->album;
}
public function setAlbum(?Album $album): self
{
$this->album = $album;
return $this;
}
}