Subscription
-
#[Entity]
-
$repositoryClass: \App\Repository\SubscriptionRepository::class
Table of Contents
Constants
-
ACTIVE
: mixed = "Active"
-
CANCELLED
: mixed = "Annulé"
-
EXPIRED
: mixed = "Expiré"
-
PENDING
: mixed = "En Attente de paiement"
Properties
-
$createdAt
: DateTimeImmutable|null
-
$endDate
: DateTimeInterface|null
-
$id
: int|null
-
$payments
: Collection<int, Payment>
-
$pricingPlan
: PricingPlan|null
-
$startDate
: DateTimeInterface|null
-
$status
: string|null
-
$updatedAt
: DateTimeImmutable|null
-
$user
: User|null
Methods
-
__construct()
: mixed
-
addPayment()
: static
-
getCreatedAt()
: DateTimeImmutable|null
-
getEndDate()
: DateTimeInterface|null
-
getId()
: int|null
-
getPayments()
: Collection<int, Payment>
-
getPricingPlan()
: PricingPlan|null
-
getStartDate()
: DateTimeInterface|null
-
getStatus()
: string|null
-
getUpdatedAt()
: DateTimeImmutable|null
-
getUser()
: User|null
-
removePayment()
: static
-
setCreatedAt()
: static
-
setEndDate()
: static
-
setPricingPlan()
: static
-
setStartDate()
: static
-
setStatus()
: static
-
setUpdatedAt()
: static
-
setUser()
: static
ACTIVE
public
mixed
ACTIVE
= "Active"
CANCELLED
public
mixed
CANCELLED
= "Annulé"
EXPIRED
public
mixed
EXPIRED
= "Expiré"
PENDING
public
mixed
PENDING
= "En Attente de paiement"
$createdAt
private
DateTimeImmutable|null
$createdAt
= null
-
#[Column]
-
#[Groups]
-
['subcription:read', 'pricing:read']
$endDate
private
DateTimeInterface|null
$endDate
= null
-
#[Column]
-
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
-
$nullable: true
-
#[Groups]
-
['subcription:read', 'pricing:read']
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$payments
private
Collection<int, Payment>
$payments
-
#[Groups]
-
['subcription:read']
-
#[MaxDepth]
-
1
-
#[OneToMany]
-
$targetEntity: \App\Entity\Payment::class
-
$mappedBy: 'subscription'
$pricingPlan
private
PricingPlan|null
$pricingPlan
= null
-
#[Groups]
-
['subcription:read']
-
#[JoinColumn]
-
$nullable: false
-
#[ManyToOne]
-
$inversedBy: 'subscriptions'
$startDate
private
DateTimeInterface|null
$startDate
= null
-
#[Column]
-
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
-
$nullable: true
-
#[Groups]
-
['subcription:read', 'pricing:read']
$status
private
string|null
$status
= null
-
#[Column]
-
$length: 50
-
$nullable: true
-
#[Groups]
-
['subcription:read', 'pricing:read']
$updatedAt
private
DateTimeImmutable|null
$updatedAt
= null
-
#[Column]
-
#[Groups]
-
['subcription:read']
$user
private
User|null
$user
= null
-
#[Groups]
-
['pricing:read']
-
#[JoinColumn]
-
$nullable: false
-
#[ManyToOne]
-
$inversedBy: 'subscriptions'
__construct()
public
__construct() : mixed
addPayment()
public
addPayment(Payment $payment) : static
Parameters
-
$payment
: Payment
-
getCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
getEndDate()
public
getEndDate() : DateTimeInterface|null
Return values
DateTimeInterface|null
getId()
public
getId() : int|null
getPayments()
public
getPayments() : Collection<int, Payment>
Return values
Collection<int, Payment>
getPricingPlan()
public
getPricingPlan() : PricingPlan|null
getStartDate()
public
getStartDate() : DateTimeInterface|null
Return values
DateTimeInterface|null
getStatus()
public
getStatus() : string|null
Return values
string|null
getUpdatedAt()
public
getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
getUser()
public
getUser() : User|null
removePayment()
public
removePayment(Payment $payment) : static
Parameters
-
$payment
: Payment
-
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $createdAt) : static
Parameters
-
$createdAt
: DateTimeImmutable
-
setEndDate()
public
setEndDate(DateTimeInterface|null $endDate) : static
Parameters
-
$endDate
: DateTimeInterface|null
-
setPricingPlan()
public
setPricingPlan(PricingPlan|null $pricingPlan) : static
Parameters
-
$pricingPlan
: PricingPlan|null
-
setStartDate()
public
setStartDate(DateTimeInterface|null $startDate) : static
Parameters
-
$startDate
: DateTimeInterface|null
-
setStatus()
public
setStatus(string|null $status) : static
Parameters
-
$status
: string|null
-
setUpdatedAt()
public
setUpdatedAt(DateTimeImmutable $updatedAt) : static
Parameters
-
$updatedAt
: DateTimeImmutable
-
setUser()
public
setUser(User|null $user) : static
Parameters
-
$user
: User|null
-