Completed
Push — master ( 938702...e3112b )
by Arjay
32:06 queued 17:02
created

CategoryWasViewed   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 17
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Yajra\CMS\Events;
4
5
use Yajra\CMS\Entities\Category;
6
7
class CategoryWasViewed extends Event
8
{
9
    /**
10
     * @var \Yajra\CMS\Entities\Category
11
     */
12
    public $category;
13
14
    /**
15
     * CategoryWasViewed constructor.
16
     *
17
     * @param \Yajra\CMS\Entities\Category $category
18
     */
19
    public function __construct(Category $category)
20
    {
21
        $this->category = $category;
22
    }
23
}
24