| 1 | <?php |
||
| 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 |
||
|
|
|||
| 57 | */ |
||
| 58 | 1 | public function getType() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @param mixed $type |
||
| 65 | * |
||
| 66 | * @return $this |
||
| 67 | */ |
||
| 68 | 1 | public function setType($type) |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return mixed |
||
| 77 | */ |
||
| 78 | 1 | public function getPaid() |
|
| 82 | |||
| 83 | /** |
||
| 84 | * @param mixed $paid |
||
| 85 | * |
||
| 86 | * @return $this |
||
| 87 | */ |
||
| 88 | 1 | public function setPaid($paid) |
|
| 94 | |||
| 95 | /** |
||
| 96 | * @return mixed |
||
| 97 | */ |
||
| 98 | 1 | public function getUserLimit() |
|
| 102 | |||
| 103 | /** |
||
| 104 | * @param mixed $userLimit |
||
| 105 | * |
||
| 106 | * @return $this |
||
| 107 | */ |
||
| 108 | 1 | public function setUserLimit($userLimit) |
|
| 114 | } |
||
| 115 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.