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

CacheRecipeDecorator::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 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