AbstractCategoryEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php namespace Arcanesoft\Blog\Events\Categories;
2
3
/**
4
 * Class     AbstractCategoryEvent
5
 *
6
 * @package  Arcanesoft\Blog\Events\Categories
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
abstract class AbstractCategoryEvent
10
{
11
    /* -----------------------------------------------------------------
12
     |  Properties
13
     | -----------------------------------------------------------------
14
     */
15
16
    /** @var  \Arcanesoft\Blog\Models\Category */
17
    public $category;
18
19
    /* -----------------------------------------------------------------
20
     |  Constructor
21
     | -----------------------------------------------------------------
22
     */
23
24
    /**
25
     * AbstractCategoryEvent constructor.
26
     *
27
     * @param  \Arcanesoft\Blog\Models\Category  $category
28
     */
29 27
    public function __construct($category)
30
    {
31 27
        $this->category = $category;
32 27
    }
33
}
34