Completed
Push — master ( ec18ae...5b38d7 )
by Felix
10:07
created

StatLocalSearchTrend   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setSearchVolumeAttribute() 0 4 1
1
<?php namespace SchulzeFelix\Stat\Objects;
2
3
use SchulzeFelix\DataTransferObject\DataTransferObject;
4
5
class StatLocalSearchTrend extends DataTransferObject
6
{
7
    protected $casts = [
8
        'search_volume' => 'integer',
9
    ];
10
11
    public function setSearchVolumeAttribute($value)
12
    {
13
        return $this->attributes['search_volume'] = (int)$value;
14
    }
15
16
17
}