Currently there's the Service\ObjectImporterInterface with the methods import_post() and import_term() (and later there would have been import_author().
For many reasons it makes more sense to split these interface into three separate ones:
namespace W2M\Import\Service;
use
W2M\Import\Type;
interface PostImporterInterface {
public function import_post( Type\ImportPostInterface $post );
}
namespace W2M\Import\Service;
use
W2M\Import\Type;
interface TermImporterInterface {
public function import_post( Type\ImportTermInterface $term );
}
namespace W2M\Import\Service;
use
W2M\Import\Type;
interface UserImporterInterface {
public function import_post( Type\ImportUserInterface $post );
}
The implementations should have the names WpPostImporter, WpTermImporter and WpUserImporter.
Currently there's the
Service\ObjectImporterInterface
with the methodsimport_post()
andimport_term()
(and later there would have beenimport_author()
.For many reasons it makes more sense to split these interface into three separate ones:
The implementations should have the names
WpPostImporter
,WpTermImporter
andWpUserImporter
.