Page MenuHomePhorge

ImporterInterface.php
No OneTemporary

Authored By
Unknown
Size
930 B
Referenced Files
None
Subscribers
None

ImporterInterface.php

<?php
namespace App\DataMigrator\Interface;
use App\DataMigrator\Account;
use App\DataMigrator\Engine;
interface ImporterInterface
{
/**
* Object constructor
*/
public function __construct(Account $account, Engine $engine);
/**
* Check user credentials.
*
* @throws \Exception
*/
public function authenticate();
/**
* Create an item in a folder.
*
* @param Item $item Item to import
*
* @throws \Exception
*/
public function createItem(Item $item): void;
/**
* Create a folder.
*
* @param Folder $folder Folder object
*
* @throws \Exception
*/
public function createFolder(Folder $folder): void;
/**
* Get a list of folder items, limited to their essential propeties
* used in incremental migration to skip unchanged items.
*/
public function getItems(Folder $folder): array;
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:29 PM (8 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18819297
Default Alt Text
ImporterInterface.php (930 B)

Event Timeline