This repository has been archived by the owner on Nov 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connect the ImportMetaFilter to WpPostImporter #56
- Loading branch information
Showing
2 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php # -*- coding: utf-8 -*- | ||
|
||
namespace W2M\Import\Filter; | ||
|
||
use | ||
W2M\Import\Type; | ||
|
||
/** | ||
* Class PassThroughImportMetaFilter | ||
* | ||
* Just a dummy filter which passes the given value through. | ||
* | ||
* @package W2M\Import\Filter | ||
*/ | ||
class PassThroughImportMetaFilter implements ImportMetaFilterInterface { | ||
|
||
/** | ||
* @param Type\ImportMetaInterface $meta | ||
* @param int $object_id | ||
* | ||
* @return mixed (The filtered value) | ||
*/ | ||
public function filter_value( Type\ImportMetaInterface $meta, $object_id ) { | ||
|
||
return $meta->value(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters