korowai/framework

View on GitHub
packages/contracts/src/Korowai/Lib/Context/ContextFactoryInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @file src/Korowai/Lib/Context/ContextFactoryInterface.php
 *
 * This file is part of the Korowai package
 *
 * @author Paweł Tomulik <ptomulik@meil.pw.edu.pl>
 * @package korowai\contracts
 * @license Distributed under MIT license.
 */

declare(strict_types=1);

namespace Korowai\Lib\Context;

/**
 * Interface for context managers.
 */
interface ContextFactoryInterface
{
    /**
     * @param mixed $arg An argument to be turned into a context manager.
     *
     * @return ContextManagerInterface
     */
    public function getContextManager($arg) : ?ContextManagerInterface;
}

// vim: syntax=php sw=4 ts=4 et: