mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 03:08:53 +00:00
33 lines
720 B
PHP
33 lines
720 B
PHP
<?php
|
|
|
|
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);
|
|
}
|
|
}
|