프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__construct ( array $data, |
||
addArticle ( |
||
addIssue ( |
||
addSection ( |
public __construct ( array $data, |
||
$data | array | |
$subscription |
public addArticle ( |
||
$article |
public addSection ( |
||
$section |
public Subscription,Newscoop\Subscription $subscription | ||
리턴 |
public string $type | ||
리턴 | string |