OssEntity
in package
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Constants
- MIN_DATE = "2021-07-01"
Properties
- $countryId : int|null
- $hasAvailableCountries : bool
- $hasRegistration : bool
- $hasSubscription : bool
- $isEuClient : bool
- $plans : mixed
- $registration : mixed
- $subscriptionStartDate : string|null
- $suggestOssRegistration : bool
- $thresholdDate : string|null
Methods
- addPlanOption() : mixed
- addRegistrationOption() : mixed
- getCountryId() : int|null
- getHasAvailableCountries() : bool
- getHasRegistration() : bool
- getHasSubscription() : bool
- Get the value of hasSubscription
- getIsEuClient() : bool
- getIsSuggested() : bool
- Get the value of isSuggested
- getMinDate() : mixed
- getPlans() : mixed
- getRegistration() : array<string|int, mixed>
- getRegistrationAddonIdByPlanIdAndCountryGroup() : int
- getStartDate() : string|null
- Get the value of startDate
- getSubscriptionStartDate() : string|null
- Get the value of subscriptionStartDate
- getSuggestOssRegistration() : bool
- getThresholdDate() : string|null
- isDisabled() : mixed
- jsonSerialize() : array<string|int, mixed>
- setCountryId() : void
- setHasAvailableCountries() : self
- setHasRegistration() : void
- setHasSubscription() : self
- Set the value of hasSubscription
- setIsEuClient() : self
- setPlans() : self
- setRegistration() : void
- setSubscriptionStartDate() : self
- Set the value of subscriptionStartDate
- setSuggestOssRegistration() : self
- setThresholdDate() : self
Constants
MIN_DATE
public
mixed
MIN_DATE
= "2021-07-01"
Properties
$countryId
private
int|null
$countryId
$hasAvailableCountries
private
bool
$hasAvailableCountries
= false
$hasRegistration
private
bool
$hasRegistration
= false
$hasSubscription
private
bool
$hasSubscription
= false
$isEuClient
private
bool
$isEuClient
= false
$plans
private
mixed
$plans
= []
Tags
$registration
private
mixed
$registration
= []
$subscriptionStartDate
private
string|null
$subscriptionStartDate
$suggestOssRegistration
private
bool
$suggestOssRegistration
= false
$thresholdDate
private
string|null
$thresholdDate
Methods
addPlanOption()
public
addPlanOption(mixed $optionName, mixed $countryGroup, OssPlanOption $planOption) : mixed
Parameters
- $optionName : mixed
- $countryGroup : mixed
- $planOption : OssPlanOption
addRegistrationOption()
public
addRegistrationOption(mixed $countryGroup, OssRegistrationAddon $ossRegistrationAddon) : mixed
Parameters
- $countryGroup : mixed
- $ossRegistrationAddon : OssRegistrationAddon
getCountryId()
public
getCountryId() : int|null
Return values
int|nullgetHasAvailableCountries()
public
getHasAvailableCountries() : bool
Return values
boolgetHasRegistration()
public
getHasRegistration() : bool
Return values
boolgetHasSubscription()
Get the value of hasSubscription
public
getHasSubscription() : bool
Return values
boolgetIsEuClient()
public
getIsEuClient() : bool
Return values
boolgetIsSuggested()
Get the value of isSuggested
public
getIsSuggested() : bool
Return values
boolgetMinDate()
public
getMinDate() : mixed
getPlans()
public
getPlans() : mixed
Tags
getRegistration()
public
getRegistration() : array<string|int, mixed>
Return values
array<string|int, mixed>getRegistrationAddonIdByPlanIdAndCountryGroup()
public
getRegistrationAddonIdByPlanIdAndCountryGroup(mixed $planId, mixed $countryGroup) : int
Parameters
- $planId : mixed
- $countryGroup : mixed
Return values
intgetStartDate()
Get the value of startDate
public
getStartDate() : string|null
Return values
string|nullgetSubscriptionStartDate()
Get the value of subscriptionStartDate
public
getSubscriptionStartDate() : string|null
Return values
string|nullgetSuggestOssRegistration()
public
getSuggestOssRegistration() : bool
Return values
boolgetThresholdDate()
public
getThresholdDate() : string|null
Return values
string|nullisDisabled()
public
isDisabled() : mixed
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setCountryId()
public
setCountryId(int|null $countryId) : void
Parameters
- $countryId : int|null
setHasAvailableCountries()
public
setHasAvailableCountries(bool $hasAvailableCountries) : self
Parameters
- $hasAvailableCountries : bool
Return values
selfsetHasRegistration()
public
setHasRegistration(bool $hasRegistration) : void
Parameters
- $hasRegistration : bool
setHasSubscription()
Set the value of hasSubscription
public
setHasSubscription(bool $hasSubscription) : self
Parameters
- $hasSubscription : bool
Return values
selfsetIsEuClient()
public
setIsEuClient(bool $isEuClient) : self
Parameters
- $isEuClient : bool
Return values
selfsetPlans()
public
setPlans(array<string|int, OssPlanOption> $plans) : self
Parameters
- $plans : array<string|int, OssPlanOption>
Return values
selfsetRegistration()
public
setRegistration(array<string|int, mixed> $registration) : void
Parameters
- $registration : array<string|int, mixed>
setSubscriptionStartDate()
Set the value of subscriptionStartDate
public
setSubscriptionStartDate(string|null $subscriptionStartDate) : self
Parameters
- $subscriptionStartDate : string|null
Return values
selfsetSuggestOssRegistration()
public
setSuggestOssRegistration(bool $suggestOssRegistration) : self
Parameters
- $suggestOssRegistration : bool
Return values
selfsetThresholdDate()
public
setThresholdDate(string|null $thresholdDate) : self
Parameters
- $thresholdDate : string|null