Completed
Push — master ( 3a2fd6...5b4baf )
by ARCANEDEV
04:23
created

PostObserver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 14
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A deleting() 0 6 2
1
<?php namespace Arcanesoft\Blog\Models\Observers;
2
3
use Arcanesoft\Blog\Models\Post;
4
5
/**
6
 * Class     PostObserver
7
 *
8
 * @package  Arcanesoft\Blog\Models\Observers
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class PostObserver extends AbstractObserver
12
{
13
    /**
14
     * Listen to the Category deleted event.
15
     *
16
     * @param  \Arcanesoft\Blog\Models\Post  $post
17
     */
18
    public function deleting(Post $post)
19
    {
20
        if ($post->isForceDeleting()) {
21
            //
22
        }
23
    }
24
}
25