CompanyActivity
in package
Activité professionnelle rattachée à une entreprise {@see Company}.
Une entreprise porte zéro à plusieurs activités ; chacune appartient à une entreprise unique (jointure obligatoire). Elle porte un nom ainsi qu'une brochure optionnelle, typiquement un document à télécharger présentant l'activité. À ne pas confondre avec Activity, qui rattache une activité à une carte de visite virtuelle plutôt qu'à une entreprise.
Attributes
- #[Entity]
- $repositoryClass: \App\Repository\CompanyActivityRepository::class
Table of Contents
Properties
Methods
- getBrochure() : string|null
- getCompany() : Company|null
- getId() : int|null
- getName() : string|null
- setBrochure() : static
- setCompany() : static
- setName() : static
Properties
$brochure
private
string|null
$brochure
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$company
private
Company|null
$company
= null
Attributes
- #[JoinColumn]
- $nullable: false
- #[ManyToOne]
- $inversedBy: 'companyActivities'
$id
private
int|null
$id
= null
Attributes
- #[Column]
- #[GeneratedValue]
- #[Id]
$name
private
string|null
$name
= null
Attributes
- #[Column]
- $length: 255
Methods
getBrochure()
public
getBrochure() : string|null
Return values
string|nullgetCompany()
public
getCompany() : Company|null
Return values
Company|nullgetId()
public
getId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullsetBrochure()
public
setBrochure(string|null $brochure) : static
Parameters
- $brochure : string|null
Return values
staticsetCompany()
public
setCompany(Company|null $company) : static
Parameters
- $company : Company|null
Return values
staticsetName()
public
setName(string $name) : static
Parameters
- $name : string