BConnect Business - Reference PHP

PricingPlan
in package

Attributes
#[ApiResource]
$operations: [ // new Get(), new \ApiPlatform\Metadata\GetCollection(), ]
$normalizationContext: ['groups' => ['pricing:read'], 'enable_max_depth' => true]
#[Entity]
$repositoryClass: \App\Repository\PricingPlanRepository::class
#[UniqueEntity]
$fields: 'name'
$message: "Le nom du forfait est unique"

Table of Contents

Properties

$features  : Collection<int, Feature>
$id  : int|null
$name  : string|null
$pricePerMonth  : float|null
$pricePerYear  : float|null
$subscriptions  : Collection<int, Subscription>
$typeSubscription  : string|null

Methods

__construct()  : mixed
addFeature()  : static
addSubscription()  : static
getFeatures()  : Collection<int, Feature>
getId()  : int|null
getName()  : string|null
getPricePerMonth()  : float|null
getPricePerYear()  : float|null
getSubscriptions()  : Collection<int, Subscription>
getTypeSubscription()  : string|null
removeFeature()  : static
removeSubscription()  : static
setName()  : static
setPricePerMonth()  : static
setPricePerYear()  : static
setTypeSubscription()  : static

Properties

$features

private Collection<int, Feature> $features
Attributes
#[Groups]
['pricing:read']
#[MaxDepth]
1
#[OneToMany]
$targetEntity: \App\Entity\Feature::class
$mappedBy: 'pricing'
$cascade: ['persist']

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Groups]
['pricing:read']
#[Id]

$name

private string|null $name = null
Attributes
#[Column]
$length: 255
#[Groups]
['pricing:read']

$pricePerMonth

private float|null $pricePerMonth = null
Attributes
#[Column]
$nullable: true
#[Groups]
['pricing:read']

$pricePerYear

private float|null $pricePerYear = null
Attributes
#[Column]
$nullable: true
#[Groups]
['pricing:read']

$subscriptions

private Collection<int, Subscription> $subscriptions
Attributes
#[Groups]
['pricing:read']
#[MaxDepth]
1
#[OneToMany]
$targetEntity: \App\Entity\Subscription::class
$mappedBy: 'pricingPlan'
$orphanRemoval: true

$typeSubscription

private string|null $typeSubscription = null
Attributes
#[Column]
$length: 255
#[Groups]
['pricing:read']

Methods

getId()

public getId() : int|null
Return values
int|null

getName()

public getName() : string|null
Return values
string|null

getPricePerMonth()

public getPricePerMonth() : float|null
Return values
float|null

getPricePerYear()

public getPricePerYear() : float|null
Return values
float|null

getTypeSubscription()

public getTypeSubscription() : string|null
Return values
string|null

setName()

public setName(string $name) : static
Parameters
$name : string
Return values
static

setPricePerMonth()

public setPricePerMonth(float $pricePerMonth) : static
Parameters
$pricePerMonth : float
Return values
static

setPricePerYear()

public setPricePerYear(float $pricePerYear) : static
Parameters
$pricePerYear : float
Return values
static

setTypeSubscription()

public setTypeSubscription(string $typeSubscription) : static
Parameters
$typeSubscription : string
Return values
static
On this page

Search results