Documentation

CompanyFeaturedPackage extends CompanyPackage
in package

CompanyFeaturedPackage model.

Tags
psalm-type

CompanyFeaturedPackageArrayType = array{ contractNumber: ?string, startDate: string, expirationDate: string, published: bool, article: ?string, articleEn: ?string, }

Attributes
#[Entity]

Table of Contents

Properties

$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$article  : CompanyLocalisedText
The featured package content article. This column should be nullable (the default), as this entity is part of the {@link \Company\Model\CompanyPackage} discriminator map.

Methods

__construct()  : mixed
exchangeArray()  : void
getArticle()  : CompanyLocalisedText
Get the featured package's article text.
getCompany()  : Company
Get the package's company.
getContractNumber()  : string|null
getExpirationDate()  : DateTime
Get the package's expiration date.
getId()  : int|null
Get the identifier of the object.
getStartingDate()  : DateTime
Get the package's starting date.
getType()  : CompanyPackageTypes
Gets the type of the package.
isActive()  : bool
isExpired()  : bool
Check whether this package is expired.
isPublished()  : bool
Get the package's publish state.
setArticle()  : void
Set the featured package's article text.
setCompany()  : void
Set the package's company.
setContractNumber()  : void
setExpirationDate()  : void
Set the package's expiration date.
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setPublished()  : void
Set the package's publish state.
setStartingDate()  : void
Set the package's starting date.
toArray()  : CompanyFeaturedPackageArrayType

Properties

$id

The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.

protected int|null $id = null
Attributes
#[Column]
$type: 'integer'
#[GeneratedValue]
$strategy: 'IDENTITY'
#[Id]

$article

The featured package content article. This column should be nullable (the default), as this entity is part of the {@link \Company\Model\CompanyPackage} discriminator map.

private CompanyLocalisedText $article
Attributes
#[JoinColumn]
$name: 'article_id'
$referencedColumnName: 'id'
#[OneToOne]
$targetEntity: \Company\Model\CompanyLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

Methods

exchangeArray()

public exchangeArray(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Tags
psalm-param

array{ contractNumber: ?string, startDate: string, expirationDate: string, published: bool, article: ?string, articleEn: ?string, } $data

throws
Exception

getContractNumber()

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

getExpirationDate()

Get the package's expiration date.

public getExpirationDate() : DateTime
Return values
DateTime

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getStartingDate()

Get the package's starting date.

public getStartingDate() : DateTime
Return values
DateTime

isExpired()

Check whether this package is expired.

public isExpired() : bool
Return values
bool

isPublished()

Get the package's publish state.

public isPublished() : bool
Return values
bool

setContractNumber()

public setContractNumber(string|null $contractNumber) : void
Parameters
$contractNumber : string|null

setExpirationDate()

Set the package's expiration date.

public setExpirationDate(DateTime $expires) : void
Parameters
$expires : DateTime

setId()

Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!

public setId(int|null $id) : void
Parameters
$id : int|null

setPublished()

Set the package's publish state.

public setPublished(bool $published) : void
Parameters
$published : bool

setStartingDate()

Set the package's starting date.

public setStartingDate(DateTime $starts) : void
Parameters
$starts : DateTime

toArray()

public toArray() : CompanyFeaturedPackageArrayType
Return values
CompanyFeaturedPackageArrayType

        
On this page

Search results