for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of AppName.
*
* (c) Monofony
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Entity\Media;
use App\Entity\IdentifiableTrait;
use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Resource\Model\ResourceInterface;
use Symfony\Component\Serializer\Annotation as Serializer;
/**
* @ORM\MappedSuperclass
abstract class File implements ResourceInterface
{
use IdentifiableTrait;
/** @var \SplFileInfo|null */
protected $file;
* @var string|null
* @ORM\Column(type="string")
* @Serializer\Groups({"Default", "Detailed"})
protected $path;
* @ORM\Column(type="string", nullable=true)
protected $type;
public function getFile(): ?\SplFileInfo
return $this->file;
}
public function setFile(?\SplFileInfo $file): void
$this->file = $file;
public function getPath(): ?string
return $this->path;
public function setPath(?string $path): void
$this->path = $path;
public function getType(): ?string
return $this->type;
public function setType(?string $type): void
$this->type = $type;