mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
35 lines
746 B
PHP
35 lines
746 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\Categorization\Pipes;
|
|
|
|
use App\Services\Categorization\CategorizationResult;
|
|
use App\Services\Categorization\Categorizers\XxxCategorizer;
|
|
use App\Services\Categorization\ReleaseContext;
|
|
|
|
/**
|
|
* Pipe for XXX/Adult content categorization.
|
|
*/
|
|
class XxxPipe extends AbstractCategorizationPipe
|
|
{
|
|
protected int $priority = 10;
|
|
|
|
private XxxCategorizer $categorizer;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->categorizer = new XxxCategorizer;
|
|
}
|
|
|
|
public function getName(): string
|
|
{
|
|
return 'XXX';
|
|
}
|
|
|
|
protected function categorize(ReleaseContext $context): CategorizationResult
|
|
{
|
|
return $this->categorizer->categorize($context);
|
|
}
|
|
}
|