Completed
Push — master ( 7949b1...be02a5 )
by Nick
07:10
created

EloquentJsWasCalled   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
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 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace EloquentJs\Laravel\Events;
4
5
use Illuminate\Database\Eloquent\Builder;
6
7
class EloquentJsWasCalled
8
{
9
    /**
10
     * @var Builder
11
     */
12
    public $builder;
13
14
    /**
15
     * @var null|string
16
     */
17
    public $stack;
18
19
    /**
20
     * Create a new event instance
21
     *
22
     * @param Builder $builder
23
     * @param null|string $stack a string representation of query methods to call
24
     */
25
    public function __construct(Builder $builder, $stack = null)
26
    {
27
        $this->builder = $builder;
28
        $this->stack = $stack;
29
    }
30
}
31