Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductWalker::__construct
Class constructor.
This class will not be available through DI. Instead, it needs to be instantiated directly.
Method of the class: ProductWalker{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->__construct( $mapper, $validator, $feed, $product_loader, $memory_manager, $query_args );
- $mapper(ProductMapperInterface) (required)
- The product mapper.
- $validator(FeedValidatorInterface) (required)
- The feed validator.
- $feed(FeedInterface) (required)
- The feed.
- $product_loader(ProductLoader) (required)
- The product loader.
- $memory_manager(MemoryManager) (required)
- The memory manager.
- $query_args(array) (required)
- The query arguments.
ProductWalker::__construct() ProductWalker:: construct code WC 10.8.1
private function __construct(
ProductMapperInterface $mapper,
FeedValidatorInterface $validator,
FeedInterface $feed,
ProductLoader $product_loader,
MemoryManager $memory_manager,
array $query_args
) {
$this->mapper = $mapper;
$this->validator = $validator;
$this->feed = $feed;
$this->product_loader = $product_loader;
$this->memory_manager = $memory_manager;
$this->query_args = $query_args;
}