ArticleWasViewed   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
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\Articles;
4
5
use Yajra\CMS\Entities\Article;
6
use Yajra\CMS\Events\Event;
7
8
class ArticleWasViewed extends Event
9
{
10
    /**
11
     * @var \Yajra\CMS\Entities\Article
12
     */
13
    public $article;
14
15
    /**
16
     * ArticleWasViewed constructor.
17
     *
18
     * @param \Yajra\CMS\Entities\Article $article
19
     */
20
    public function __construct(Article $article)
21
    {
22
        $this->article = $article;
23
    }
24
}
25