Completed
Push — master ( ef29db...6cb927 )
by Ariel
06:10
created

Workspace   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A business() 0 6 1
A timezone() 0 8 2
1
<?php
2
3
namespace Timegridio\Concierge;
4
5
use Timegridio\Concierge\Models\Business;
6
7
class Workspace
8
{
9
    protected $business;
10
11
    protected $timezone = null;
12
13
    public function business($business)
14
    {
15
        $this->business = $business;
16
17
        return $this;
18
    }
19
20
    public function timezone($timezone = null)
21
    {
22
        if ($timezone == null) {
23
            return $this->timezone = $this->business->timezone;
24
        }
25
26
        return $this->timezone = $timezone;
27
    }
28
}
29