Completed
Push — master ( 6e6d73...1dcfbd )
by Cesar
14s queued 11s
created

Channel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 67
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAssistedSale() 0 3 1
A setAssistedSale() 0 5 1
A getType() 0 3 1
A setType() 0 5 1
1
<?php
2
3
namespace Pagantis\OrdersApiClient\Model\Order\Configuration;
4
5
use Pagantis\OrdersApiClient\Model\AbstractModel;
6
7
/**
8
 * Class Channel
9
 * @package Pagantis\OrdersApiClient\Model\Order\Configuration
10
 */
11
class Channel extends AbstractModel
12
{
13
    /**
14
     * Online type, for sales in the website
15
     */
16
    const ONLINE = 'ONLINE';
17
18
    /**
19
     * In store type, for sales in a physical store
20
     */
21
    const INSTORE = 'IN_STORE';
22
23
    /**
24
     * Phonesale type, for sales made on the phone
25
     */
26
    const PHONESALE = 'PHONE';
27
28
    /**
29
     * @var string type
30
     */
31
    protected $type;
32
33
    /**
34
     * @var bool $assistedSale
35
     */
36
    protected $assistedSale;
37
38
    /**
39
     * @return bool
40
     */
41
    public function getAssistedSale()
42
    {
43
        return $this->assistedSale;
44
    }
45
46
    /**
47
     * @param $assistedSale
48
     *
49
     * @return $this
50
51
     */
52
    public function setAssistedSale($assistedSale)
53
    {
54
        $this->assistedSale = $assistedSale;
55
56
        return $this;
57
    }
58
59
60
    /**
61
     * @return string
62
     */
63
    public function getType()
64
    {
65
        return $this->type;
66
    }
67
68
    /**
69
     * @param $type
70
     *
71
     * @return $this
72
     */
73
    public function setType($type)
74
    {
75
        $this->type = $type;
76
77
        return $this;
78
    }
79
}
80