Completed
Push — master ( 77e88f...cea5c6 )
by Ariel
05:58
created

ReservationData::forService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Timegridio\Concierge;
4
5
class ReservationData
6
{
7
    protected $issuer;
8
9
    protected $business;
10
11
    protected $service;
12
13
    protected $contact;
14
15
    protected $date;
16
17
    protected $time;
18
19
    protected $timezone;
20
21
    protected $comments;
22
23
    public function issuer($user)
24
    {
25
        $this->issuer = $user;
26
27
        return $this;
28
    }
29
30
    public function business($slug)
31
    {
32
        $this->business = $slug;
33
34
        return $this;
35
    }
36
37
    public function forBusiness($slug)
38
    {
39
        return $this->business($slug);
40
    }
41
42
    public function service($slug)
43
    {
44
        $this->service = $slug;
45
46
        return $this;
47
    }
48
49
    public function forService($slug)
50
    {
51
        return $this->service($slug);
52
    }
53
54
    public function contact($identifier)
55
    {
56
        $this->contact = $identifier;
57
58
        return $this;
59
    }
60
61
    public function forContact($identifier)
62
    {
63
        return $this->contact($identifier);
64
    }
65
66
    public function date($date)
67
    {
68
        $this->date = $date;
69
70
        return $this;
71
    }
72
73
    public function onDate($date)
74
    {
75
        return $this->date($date);
76
    }
77
78
    public function time($time)
79
    {
80
        $this->time = $time;
81
82
        return $this;
83
    }
84
85
    public function atTime($time)
86
    {
87
        return $this->time($time);
88
    }
89
90
    public function timezone($timezone)
91
    {
92
        return $this->timezone = $timezone;
93
    }
94
95
    public function comments($comments)
96
    {
97
        $this->comments = $comments;
98
99
        return $this;
100
    }
101
102
    public function withComments($comments)
103
    {
104
        return $this->comments($comments);
105
    }
106
}
107