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

StatSite   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setDropWWWPrefixAttribute() 0 4 1
A setDropDirectoriesAttribute() 0 4 1
1
<?php namespace SchulzeFelix\Stat\Objects;
2
3
use SchulzeFelix\DataTransferObject\DataTransferObject;
4
5
class StatSite extends DataTransferObject
6
{
7
    protected $casts = [
8
        'id' => 'integer',
9
        'project_id' => 'integer',
10
        'total_keywords' => 'integer',
11
        'drop_www_prefix' => 'boolean',
12
        'drop_directories' => 'boolean',
13
    ];
14
15
16
    public function setDropWWWPrefixAttribute($value)
17
    {
18
        return $this->attributes['drop_www_prefix'] = (bool)$value;
19
    }
20
21
    public function setDropDirectoriesAttribute($value)
22
    {
23
        return $this->attributes['drop_directories'] = (bool)$value;
24
    }
25
26
}