deefour/producer

View on GitHub
src/Contracts/Producer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Deefour\Producer\Contracts;

use Deefour\Producer\Exceptions\NotProducibleException;

interface Producer
{
    /**
     * Custom resolver class resolution.
     *
     * @throws NotProducibleException
     * @param string $what
     * @return Producible
     */
    public function produce($what);

    /**
     * Determine the source from which producibles should be resolved.
     */
    public function resolvable();
}