<?php
/*
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential.
*
* @author Bilel AZRI <azri.bilel@gmail.com>
* @author Assma BEN SASSI <bensassiasma.bws@gmail.com>
*
* Bicking man (c) 2019-present.
*/
declare(strict_types=1);
namespace App\Entity\Media;
use App\Behavior\Uuidable;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity
* @ORM\HasLifecycleCallbacks
*/
class Image extends Media
{
use Uuidable;
/** @var string */
public $discr = 'image';
/**
* @Groups({"image:read"})
* @ORM\Column(type="float", nullable=true)
*/
protected $width;
/**
* @Groups({"image:read"})
* @ORM\Column(type="float", nullable=true)
*/
protected $height;
public function getWidth(): ?float
{
return $this->width;
}
public function setWidth(?float $width): self
{
$this->width = $width;
return $this;
}
public function getHeight(): ?float
{
return $this->height;
}
public function setHeight(?float $height): self
{
$this->height = $height;
return $this;
}
public function getDiscr(): string
{
return $this->discr;
}
}