FileWasLinked   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php namespace Modules\Media\Events;
2
3
use Modules\Media\Entities\File;
4
5
class FileWasLinked
6
{
7
    /**
8
     * @var File
9
     */
10
    public $file;
11
    /**
12
     * The entity that was linked to a file
13
     * @var object
14
     */
15
    public $entity;
16
17
    /**
18
     * @param File $file
19
     * @param object $entity
20
     */
21
    public function __construct(File $file, $entity)
22
    {
23
        $this->file = $file;
24
        $this->entity = $entity;
25
    }
26
}
27