Issues (9)

src/Business/Pool/CachePoolFactory.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 *  This file is part of the Micro framework package.
7
 *
8
 *  (c) Stanislau Komar <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Micro\Plugin\Cache\Business\Pool;
15
16
use Micro\Plugin\Cache\Business\Adapter\AdapterFactoryInterface;
17
18
readonly class CachePoolFactory implements CachePoolFactoryInterface
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_READONLY on line 18 at column 0
Loading history...
19
{
20 4
    public function __construct(
21
        private AdapterFactoryInterface $adapterFactory
22
    ) {
23 4
    }
24
25 4
    public function create(): CachePoolInterface
26
    {
27 4
        return new CachePool(
28 4
            $this->adapterFactory
29 4
        );
30
    }
31
}
32