Completed
Pull Request — master (#22)
by Sergey
15:55
created

EloquentCache   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
A put() 0 4 1
A getCachedAttributes() 0 4 1
A addCachedAtributes() 0 4 1
1
<?php
2
3
namespace Isswp101\Persimmon\Cache;
4
5
use Isswp101\Persimmon\Model\IEloquent;
6
7
class EloquentCache implements IEloquentCache
8
{
9
    private $cachedAttributes = [];
10
11
    public function get(): IEloquent
12
    {
13
        // TODO: Implement get() method.
14
    }
15
16
    public function put(IEloquent $model, array $cachedAttributes = [])
17
    {
18
        // TODO: Implement put() method.
19
    }
20
21
    public function getCachedAttributes(): array
22
    {
23
        return $this->cachedAttributes;
24
    }
25
26
    public function addCachedAtributes(array $cachedAttributes)
27
    {
28
        // TODO: Implement addCachedAtributes() method.
29
    }
30
}