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

PostObserver::deleting()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
cc 2
eloc 2
nc 2
nop 1
crap 6
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