php-sdk/examples/06-custom-dependencies-stdio/Service/TaskRepositoryInterface.php
2025-08-29 11:19:51 +02:00

23 lines
583 B
PHP

<?php
/*
* This file is part of the official PHP MCP SDK.
*
* A collaboration between Symfony and the PHP Foundation.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mcp\Example\DependenciesStdioExample\Service;
interface TaskRepositoryInterface
{
public function addTask(string $userId, string $description): array;
public function getTasksForUser(string $userId): array;
public function getAllTasks(): array;
public function completeTask(int $taskId): bool;
}