JobLabel
in package
uses
IdentifiableTrait
Job Label model.
Tags
Attributes
- #[Entity]
Table of Contents
Properties
- $abbreviation : CompanyLocalisedText
- The abbreviation of the label.
- $id : int|null
- The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
- $jobs : Collection<string|int, Job>
- The Assignments this Label belongs to.
- $name : CompanyLocalisedText
- The name of the label.
Methods
- __construct() : mixed
- addJob() : void
- getAbbreviation() : CompanyLocalisedText
- Gets the slug.
- getId() : int|null
- Get the identifier of the object.
- getJobs() : Collection<string|int, Job>
- Gets the jobs associated with this label.
- getName() : CompanyLocalisedText
- Gets the name.
- removeJob() : void
- setAbbreviation() : void
- Sets the slug.
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setName() : void
- Sets the name.
- toArray() : JobLabelArrayType
Properties
$abbreviation
The abbreviation of the label.
protected
CompanyLocalisedText
$abbreviation
Attributes
- #[JoinColumn]
- $name: 'abbreviation_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Company\Model\CompanyLocalisedText::class
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
$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]
$jobs
The Assignments this Label belongs to.
protected
Collection<string|int, Job>
$jobs
Attributes
- #[ManyToMany]
- $targetEntity: \Company\Model\Job::class
- $mappedBy: 'labels'
- $cascade: ['persist']
$name
The name of the label.
protected
CompanyLocalisedText
$name
Attributes
- #[JoinColumn]
- $name: 'name_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Company\Model\CompanyLocalisedText::class
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
Methods
__construct()
public
__construct() : mixed
addJob()
public
addJob(Job $job) : void
Parameters
- $job : Job
getAbbreviation()
Gets the slug.
public
getAbbreviation() : CompanyLocalisedText
Return values
CompanyLocalisedTextgetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetJobs()
Gets the jobs associated with this label.
public
getJobs() : Collection<string|int, Job>
Return values
Collection<string|int, Job>getName()
Gets the name.
public
getName() : CompanyLocalisedText
Return values
CompanyLocalisedTextremoveJob()
public
removeJob(Job $job) : void
Parameters
- $job : Job
setAbbreviation()
Sets the slug.
public
setAbbreviation(CompanyLocalisedText $slug) : void
Parameters
- $slug : CompanyLocalisedText
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
setName()
Sets the name.
public
setName(CompanyLocalisedText $name) : void
Parameters
- $name : CompanyLocalisedText
toArray()
public
toArray() : JobLabelArrayType