for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Kunstmaan\MediaBundle\Model;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Validator\Constraints as Assert;
/** @internal */
final class ImageUploadModel
{
/**
* @var File
* @Assert\Image(detectCorrupted=true)
*/
private $file;
public function __construct(File $file)
$this->file = $file;
}
public function getFile(): ?File
return $this->file;
public function setFile(?File $file)
return $this;