BConnect Business - Reference PHP

Subscription
in package

Attributes
#[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

Constants

Properties

$createdAt

private DateTimeImmutable|null $createdAt = null
Attributes
#[Column]
#[Groups]
['subcription:read', 'pricing:read']

$endDate

private DateTimeInterface|null $endDate = null
Attributes
#[Column]
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
$nullable: true
#[Groups]
['subcription:read', 'pricing:read']

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]

$payments

private Collection<int, Payment> $payments
Attributes
#[Groups]
['subcription:read']
#[MaxDepth]
1
#[OneToMany]
$targetEntity: \App\Entity\Payment::class
$mappedBy: 'subscription'

$pricingPlan

private PricingPlan|null $pricingPlan = null
Attributes
#[Groups]
['subcription:read']
#[JoinColumn]
$nullable: false
#[ManyToOne]
$inversedBy: 'subscriptions'

$startDate

private DateTimeInterface|null $startDate = null
Attributes
#[Column]
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
$nullable: true
#[Groups]
['subcription:read', 'pricing:read']

$status

private string|null $status = null
Attributes
#[Column]
$length: 50
$nullable: true
#[Groups]
['subcription:read', 'pricing:read']

$updatedAt

private DateTimeImmutable|null $updatedAt = null
Attributes
#[Column]
#[Groups]
['subcription:read']

$user

private User|null $user = null
Attributes
#[Groups]
['pricing:read']
#[JoinColumn]
$nullable: false
#[ManyToOne]
$inversedBy: 'subscriptions'

Methods

getCreatedAt()

public getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getEndDate()

public getEndDate() : DateTimeInterface|null
Return values
DateTimeInterface|null

getId()

public getId() : int|null
Return values
int|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

setCreatedAt()

public setCreatedAt(DateTimeImmutable $createdAt) : static
Parameters
$createdAt : DateTimeImmutable
Return values
static

setEndDate()

public setEndDate(DateTimeInterface|null $endDate) : static
Parameters
$endDate : DateTimeInterface|null
Return values
static

setStartDate()

public setStartDate(DateTimeInterface|null $startDate) : static
Parameters
$startDate : DateTimeInterface|null
Return values
static

setStatus()

public setStatus(string|null $status) : static
Parameters
$status : string|null
Return values
static

setUpdatedAt()

public setUpdatedAt(DateTimeImmutable $updatedAt) : static
Parameters
$updatedAt : DateTimeImmutable
Return values
static

setUser()

public setUser(User|null $user) : static
Parameters
$user : User|null
Return values
static
On this page

Search results