Property | Type | Description | |
---|---|---|---|
$active | boolean | Subscription status | |
$articles | array | Array of Subscription Articles | |
$currency | string | Currency | |
$days | integer | How long subscription should be valid | |
$issues | array | Array of Subscription Issues | |
$paidDays | integer | How long subscription will be valid | |
$publicationId | integer | Publication Id | |
$sections | array | Array of SubscriptionSections | |
$startDate | DateTime | Subscription start date | |
$subscription | Subscription Class | ||
$subscriptionId | integer | Subscription id | |
$toPay | decimal | To pay value | |
$type | string | 'T' for Trial subscription, 'P' for paid subscription or 'PN' for paid now subscriptions. | |
$userId | integer | User id |
Method | Description | |
---|---|---|
__construct ( array $data, |
||
addArticle ( |
||
addIssue ( |
||
addSection ( |
public __construct ( array $data, |
||
$data | array | |
$subscription |
public addArticle ( |
||
$article |
public addSection ( |
||
$section |
public int $paidDays | ||
return | integer |
public Subscription,Newscoop\Subscription $subscription | ||
return |
public string $type | ||
return | string |