uploadedFile = $uploadedFile; } /** * {@inheritdoc} */ public function getClientOriginalName(): string { return $this->uploadedFile->getClientOriginalName(); } /** * {@inheritdoc} */ public function getSize(): int { return $this->uploadedFile->getSize(); } /** * {@inheritdoc} */ public function getRealPath() { return $this->uploadedFile->getRealPath(); } /** * {@inheritdoc} */ public function getPathname(): string { return $this->uploadedFile->getPathname(); } /** * {@inheritdoc} */ public function getFilename(): string { return $this->uploadedFile->getFilename(); } /** * {@inheritdoc} */ public function validate(ValidatorInterface $validator, array $options = []): ConstraintViolationListInterface { $constraint = new UploadedFileConstraint($options); return $validator->validate($this->uploadedFile, $constraint); } }