diff --git a/app/src/Domain/Factory/FileFactory.php b/app/src/Domain/Factory/FileFactory.php new file mode 100644 index 0000000..16dc7a8 --- /dev/null +++ b/app/src/Domain/Factory/FileFactory.php @@ -0,0 +1,37 @@ +setId($props['id']); + } + + if ($props['createAt']) { + $file->setCreatedAt($props['createdAt']); + } + + if ($props['updatedAt']) { + $file->setUpdatedAt($props['updatedAt']); + } + + return $file; + } + + public static function toArray(File $file): array + { + return []; + } +}