Completed
Push — master ( 3d4150...00d7a1 )
by Nicolas
03:57
created

CacheRecipeDecorator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php namespace Modules\Recipe\Repositories\Cache;
2
3
use Modules\Recipe\Repositories\RecipeRepository;
4
use Modules\Core\Repositories\Cache\BaseCacheDecorator;
5
6
class CacheRecipeDecorator extends BaseCacheDecorator implements RecipeRepository
7
{
8
    public function __construct(RecipeRepository $recipe)
9
    {
10
        parent::__construct();
11
        $this->entityName = 'recipe.recipes';
12
        $this->repository = $recipe;
13
    }
14
}
15