PHP Class Newscoop\Subscription\Article

Mostrar archivo Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$article
$articleNumber integer
$days integer
$id integer
$language Newscoop\Entity\Language
$noticeSent string
$paidDays integer
$startDate DateTime
$subscription Newscoop\Subscription\Subscription

Public Methods

Method Description
__construct ( Subscription $subscription, Article $article )
getArticle ( ) : string Get article
getArticleNumber ( ) : integer Get articleNumber
getDays ( ) : integer Get days
getExpirationDate ( ) : DateTime Get expiration date
getId ( ) : integer Get id
getLanguage ( ) : Newscoop\Entity\Language Get language
getLanguageId ( ) : integer Get language id
getLanguageName ( ) : string Get language name
getName ( ) : string Get name
getPaidDays ( ) : integer Get paid days
getStartDate ( ) : DateTime Get start date
getSubscription ( ) : Newscoop\Subscription\Subscription Get subscription
hasLanguage ( ) : boolean Test if has language set
setDays ( integer $days ) : Newscoop\Entity\SubscriptionSection Set days
setLanguage ( Language $language ) : void Set language
setPaidDays ( integer $paidDays ) : Newscoop\Entity\SubscriptionSection Set paid days
setStartDate ( DateTime $date ) : Newscoop\Entity\SubscriptionSection Set start date

Method Details

__construct() public method

public __construct ( Subscription $subscription, Article $article )
$subscription Subscription
$article Newscoop\Entity\Article

getArticle() public method

Get article
public getArticle ( ) : string
return string

getArticleNumber() public method

Get articleNumber
public getArticleNumber ( ) : integer
return integer

getDays() public method

Get days
public getDays ( ) : integer
return integer

getExpirationDate() public method

Get expiration date
public getExpirationDate ( ) : DateTime
return DateTime

getId() public method

Get id
public getId ( ) : integer
return integer

getLanguage() public method

Get language
public getLanguage ( ) : Newscoop\Entity\Language
return Newscoop\Entity\Language

getLanguageId() public method

Get language id
public getLanguageId ( ) : integer
return integer

getLanguageName() public method

Get language name
public getLanguageName ( ) : string
return string

getName() public method

Get name
public getName ( ) : string
return string

getPaidDays() public method

Get paid days
public getPaidDays ( ) : integer
return integer

getStartDate() public method

Get start date
public getStartDate ( ) : DateTime
return DateTime

getSubscription() public method

Get subscription
public getSubscription ( ) : Newscoop\Subscription\Subscription
return Newscoop\Subscription\Subscription

hasLanguage() public method

Test if has language set
public hasLanguage ( ) : boolean
return boolean

setDays() public method

Set days
public setDays ( integer $days ) : Newscoop\Entity\SubscriptionSection
$days integer
return Newscoop\Entity\SubscriptionSection

setLanguage() public method

Set language
public setLanguage ( Language $language ) : void
$language Newscoop\Entity\Language
return void

setPaidDays() public method

Set paid days
public setPaidDays ( integer $paidDays ) : Newscoop\Entity\SubscriptionSection
$paidDays integer
return Newscoop\Entity\SubscriptionSection

setStartDate() public method

Set start date
public setStartDate ( DateTime $date ) : Newscoop\Entity\SubscriptionSection
$date DateTime
return Newscoop\Entity\SubscriptionSection

Property Details

$article protected_oe property

protected $article

$articleNumber protected_oe property

protected int $articleNumber
return integer

$days protected_oe property

protected int $days
return integer

$id protected_oe property

protected int $id
return integer

$language protected_oe property

protected Newscoop\Entity\Language $language
return Newscoop\Entity\Language

$noticeSent protected_oe property

protected string $noticeSent
return string

$paidDays protected_oe property

protected int $paidDays
return integer

$startDate protected_oe property

protected DateTime $startDate
return DateTime

$subscription protected_oe property

protected Newscoop\Subscription\Subscription $subscription
return Newscoop\Subscription\Subscription