<?php
/*
* @since 1.0.0
* @copyright Copyright (C) 2021 ArtMedia. All rights reserved.
* @website http://artmedia.biz.pl
* @author Arkadiusz Tobiasz
* @email kontakt@artmedia.biz.pl
*/
namespace App\Entity\Media;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\Media\PhotoRepository")
* @ORM\Table(name="media_photo")
*/
class Photo extends Media
{
const FOLLOW_NOTIFICATION = 'follow_photo';
const FEED = 'new_photo';
/**
* @ORM\Column(type="string", length=255)
*/
private $filename;
public function __construct()
{
parent::__construct();
}
public function getFilename(): ?string
{
return $this->filename;
}
public function setFilename(?string $filename): self
{
$this->filename = $filename;
return $this;
}
public function getType(): string
{
return Media::TYPE_PHOTO;
}
}