<?php
declare(strict_types=1);

namespace Oscar\MailEngine\Sieve;

final class InMemorySieve implements SieveInterface
{
    // ... existing properties ...

    public function listRules(string $accountId): array
    {
        // Return fixture data for v0.1.0
        return [
            [
                'id' => 'survey-photos',
                'name' => 'Survey photos',
                'conditions' => [
                    ['field' => 'subject', 'operator' => 'contains', 'value' => 'survey'],
                    ['field' => 'hasAttachment', 'operator' => 'equals', 'value' => true],
                ],
                'actions' => [
                    ['type' => 'move', 'destination' => 'Photos'],
                ],
                'enabled' => true,
            ],
        ];
    }

    public function testRule(string $ruleId, string $messageId, string $accountId): array
    {
        // Mock response for v0.1.0
        return [
            'matched' => true,
            'action_taken' => 'moved to Photos',
        ];
    }

    // ... other existing methods ...
}