SourceModifierInterface.php•669 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Modifier;
interface SourceModifierInterface
{
    /**
     * Get the identifier for this modifier
     */
    public function getIdentifier(): string;
    /**
     * Check if this modifier supports the given content type
     */
    public function supports(string $contentType): bool;
    /**
     * Modify the source content
     *
     * @param string $content PHP code content
     * @param array<string, mixed> $context Additional context information
     * @return string Formatted markdown documentation
     */
    public function modify(string $content, array $context = []): string;
}