FileWasLinked::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
rs 9.4286
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 2
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