BConnect POS - Reference PHP

FieldOfActivity
in package

Attributes
#[Entity]
$repositoryClass: \App\Repository\FieldOfActivityRepository::class
#[UniqueEntity]
$fields: 'name'
$message: 'Le nom du domaine est unique'

Table of Contents

Properties

$created_at  : DateTimeImmutable|null
$id  : int|null
$name  : string|null
$pointOfSaleId  : int|null
$suppliers  : Collection

Methods

__construct()  : mixed
addSupplier()  : static
getCreatedAt()  : DateTimeImmutable|null
getId()  : int|null
getName()  : string|null
getPointOfSaleId()  : int|null
getSuppliers()  : Collection<int, Supplier>
removeSupplier()  : static
setCreatedAt()  : static
setName()  : static
setPointOfSaleId()  : static

Properties

$created_at

private DateTimeImmutable|null $created_at = null
Attributes
#[Column]

$id

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

$name

private string|null $name = null
Attributes
#[Column]
$length: 255

$pointOfSaleId

private int|null $pointOfSaleId = null
Attributes
#[Column]

$suppliers

private Collection $suppliers
Attributes
#[OneToMany]
$mappedBy: 'fieldOfActivity'
$targetEntity: \App\Entity\Supplier::class

Methods

getCreatedAt()

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

getPointOfSaleId()

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

setCreatedAt()

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

setName()

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

setPointOfSaleId()

public setPointOfSaleId(int $pointOfSaleId) : static
Parameters
$pointOfSaleId : int
Return values
static
On this page

Search results