'\\d+'], security: 'is_granted("ROLE_FILE")', provider: FileProvider::class ) ] )] class File { #[ApiProperty(identifier: true)] private int $fileId; /** * @return int */ public function getFileId() : int { return $this->fileId; } /** * @param int $fileId */ public function setFileId(int $fileId) : void { $this->fileId = $fileId; } }