Passed
Push — master ( 6b0e6b...43789e )
by Stephen
03:30
created

TrackTrafficObserver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A saving() 0 3 1
1
<?php
2
3
namespace Sfneal\Tracking\Observers;
4
5
use Sfneal\Observers\AbstractObserver;
6
use Sfneal\Observers\Saving;
7
use Sfneal\Tracking\Models\TrackTraffic;
8
9
class TrackTrafficObserver extends AbstractObserver implements Saving
10
{
11
    /**
12
     * Handle the TrackTraffic "saved" event.
13
     *
14
     * Set app_environment attribute value.
15
     *
16
     * @param TrackTraffic $tacking
17
     *
18
     * @return void
19
     */
20
    public function saving(TrackTraffic $tacking)
21
    {
22
        $tacking->setAppEnvironmentAttribute();
23
    }
24
}
25