Test Failed
Push — master ( 156c37...627d8f )
by Zbigniew
03:20
created

SubscriptionModel::setPaid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zibios\WrikePhpJmsserializer\Model\Common;
13
14
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
15
16
/**
17
 * Subscription Model.
18
 */
19
class SubscriptionModel implements ResourceModelInterface
20
{
21
    /**
22
     * Subscription type.
23
     *
24
     * Enum: Free, Premium, Business, CreativeBusiness, Enterprise, CreativeEnterprise
25
     *
26
     * @see \Zibios\WrikePhpLibrary\Enum\SubscriptionTypeEnum
27
     *
28
     * @SA\Type("string")
29
     * @SA\SerializedName("type")
30
     *
31
     * @var string|null
32
     */
33
    protected $type;
34
35
    /**
36
     * Subscription is paid (available only to account admins).
37
     *
38
     * @SA\Type("boolean")
39
     * @SA\SerializedName("paid")
40
     *
41
     * @var bool|null
42
     */
43
    protected $paid;
44
45
    /**
46
     * Limit of subscription users (available only to account admins).
47
     *
48
     * @SA\Type("boolean")
49
     * @SA\SerializedName("userLimit")
50
     *
51
     * @var int|null
52
     */
53
    protected $userLimit;
54
55
    /**
56
     * @return mixed
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use string|null.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
57
     */
58 1
    public function getType()
59
    {
60 1
        return $this->type;
61
    }
62
63
    /**
64
     * @param mixed $type
65
     *
66
     * @return $this
67
     */
68 1
    public function setType($type)
69
    {
70 1
        $this->type = $type;
71
72 1
        return $this;
73
    }
74
75
    /**
76
     * @return mixed
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use boolean|null.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
77
     */
78 1
    public function getPaid()
79
    {
80 1
        return $this->paid;
81
    }
82
83
    /**
84
     * @param mixed $paid
85
     *
86
     * @return $this
87
     */
88 1
    public function setPaid($paid)
89
    {
90 1
        $this->paid = $paid;
91
92 1
        return $this;
93
    }
94
95
    /**
96
     * @return mixed
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use integer|null.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
97
     */
98 1
    public function getUserLimit()
99
    {
100 1
        return $this->userLimit;
101
    }
102
103
    /**
104
     * @param mixed $userLimit
105
     *
106
     * @return $this
107
     */
108 1
    public function setUserLimit($userLimit)
109
    {
110 1
        $this->userLimit = $userLimit;
111
112 1
        return $this;
113
    }
114
}
115