haxorqt
Home
Console
Upload
information
Create File
Create Folder
About
:
/
proc
/
self
/
cwd
/
wp-content
/
plugins
/
admin-columns-pro
/
classes
/
Export
/
Strategy
/
Filename :
CommentFactory.php
back
Copy
<?php declare(strict_types=1); namespace ACP\Export\Strategy; use AC\TableScreen; use ACP\Export\Exporter\TableDataFactory; use ACP\Export\ResponseFactory; use ACP\Export\Strategy; use ACP\Export\StrategyFactory; class CommentFactory implements StrategyFactory { private ResponseFactory $response_factory; public function __construct(ResponseFactory $response_factory) { $this->response_factory = $response_factory; } public function create(TableScreen $table_screen): ?Strategy { if ( ! $table_screen instanceof TableScreen\Comment) { return null; } return new Comment( new TableDataFactory($table_screen), $this->response_factory ); } }