added dateformat and timezone options to project importer (#2042)

This commit is contained in:
Kevin Papst
2020-10-16 12:53:33 +02:00
committed by GitHub
parent 996f05c73a
commit 032db11b48
4 changed files with 57 additions and 17 deletions

View File

@@ -13,5 +13,13 @@ use App\Entity\Project;
interface ProjectImporterInterface
{
public function convertEntryToProject(array $entry): Project;
/**
* Convert an entry (key-value pairs) to a Project entity.
* Accepts an optional array of options (like "dateformat" or "timezone").
*
* @param array<string, mixed> $entry
* @param array<string, mixed> $options
* @return Project
*/
public function convertEntryToProject(array $entry, array $options = []): Project;
}