| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class UserObserverClearCache |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Repository |
||
| 14 | */ |
||
| 15 | private $cache; |
||
| 16 | |||
| 17 | 4 | public function __construct(Repository $cache) |
|
| 18 | { |
||
| 19 | 4 | $this->cache = $cache; |
|
| 20 | 4 | } |
|
| 21 | |||
| 22 | 2 | public function create(UserModel $userModel) |
|
| 26 | 2 | } |
|
| 27 | |||
| 28 | 1 | public function delete(UserModel $user) |
|
| 33 | 1 | } |
|
| 34 | |||
| 35 | 1 | public function update(UserModel $oldUser, UserModel $newUser) |
|
| 43 | } |