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

AbstractAttachingEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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