Completed
Push — develop ( 9ee49b...09fe33 )
by Martin
02:19
created

AbstractAttachingEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Luminark\Rivet\Events;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Luminark\Rivet\Models\Rivet;
7
8
abstract class AbstractAttachingEvent
9
{
10
    public $model;
11
    
12
    public $collection;
13
    
14
    public $rivet;
15
    
16
    public function __construct(Model $model, $collection, Rivet $rivet)
17
    {
18
        $this->model = $model;
19
        $this->collection = $collection;
20
        $this->rivet = $rivet;
21
    }
22
}
23