reliqarts/laravel-docweaver

View on GitHub
src/Contract/Product/Finder.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace ReliqArts\Docweaver\Contract\Product;

use ReliqArts\Docweaver\Model\Product;

interface Finder
{
    /**
     * List available products.
     *
     * @param bool $includeUnknowns whether to include products with unknown version
     *
     * @return Product[]
     */
    public function listProducts(bool $includeUnknowns = false): array;

    /**
     * Get product.
     */
    public function findProduct(string $productName): ?Product;
}