Completed
Push — master ( c91fb3...77e88f )
by Ariel
05:48
created

Calendar   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
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 28
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\Calendar;
4
5
class Calendar
6
{
7
    protected $business;
8
9
    protected $datetime = null;
10
11
    protected $timezone = null;
12
13
    protected $vacancies = null;
14
15
    protected $find = null;
16
17
    public function business($business)
18
    {
19
        $this->business = $business;
20
21
        return $this;
22
    }
23
24
    public function timezone($timezone = null)
25
    {
26
        if ($timezone == null) {
27
            return $this->timezone = $this->business->timezone;
28
        }
29
30
        return $this->timezone = $timezone;
31
    }
32
}
33