OpeningHour   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A from() 0 3 1
A to() 0 3 1
A day() 0 3 1
1
<?php
2
3
namespace Signifly\ParcelShop\Resources;
4
5
class OpeningHour extends Resource
6
{
7
    /**
8
     * Get the day.
9
     *
10
     * @return string
11
     */
12
    public function day(): string
13
    {
14
        return $this->getData('day');
15
    }
16
17
    /**
18
     * Get the from time.
19
     *
20
     * @return string
21
     */
22
    public function from(): string
23
    {
24
        return $this->getData('openAt.From');
25
    }
26
27
    /**
28
     * Get the to time.
29
     *
30
     * @return string
31
     */
32
    public function to(): string
33
    {
34
        return $this->getData('openAt.To');
35
    }
36
}
37