Documentation

JobCategory
in package
uses IdentifiableTrait

Job Category model.

Attributes
#[Entity]

Table of Contents

Properties

$hidden  : bool
If the category is hidden.
$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$name  : CompanyLocalisedText
The name of the category.
$pluralName  : CompanyLocalisedText
The name of the category.
$slug  : CompanyLocalisedText
The slug of the category.

Methods

getHidden()  : bool
getId()  : int|null
Get the identifier of the object.
getName()  : CompanyLocalisedText
Gets the name.
getPluralName()  : CompanyLocalisedText
Gets the plural name.
getSlug()  : CompanyLocalisedText
Gets the slug.
setHidden()  : void
Set's the id.
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setName()  : void
Sets the name.
setPluralName()  : void
Sets the name.
setSlug()  : void
Sets the slug.
toArray()  : array{name: ?string, nameEn: ?string, pluralName: ?string, pluralNameEn: ?string, slug: ?string, slugEn: ?string, hidden: bool}

Properties

$hidden

If the category is hidden.

protected bool $hidden
Attributes
#[Column]
$type: 'boolean'

$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]

$name

The name of the category.

protected CompanyLocalisedText $name
Attributes
#[JoinColumn]
$name: 'name_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Company\Model\CompanyLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

$pluralName

The name of the category.

protected CompanyLocalisedText $pluralName
Attributes
#[JoinColumn]
$name: 'pluralName_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Company\Model\CompanyLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

$slug

The slug of the category.

protected CompanyLocalisedText $slug
Attributes
#[JoinColumn]
$name: 'slug_id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Company\Model\CompanyLocalisedText::class
$cascade: ['persist', 'remove']
$orphanRemoval: true

Methods

getHidden()

public getHidden() : bool
Return values
bool

getId()

Get the identifier of the object.

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

setHidden()

Set's the id.

public setHidden(bool $hidden) : void
Parameters
$hidden : bool

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

toArray()

public toArray() : array{name: ?string, nameEn: ?string, pluralName: ?string, pluralNameEn: ?string, slug: ?string, slugEn: ?string, hidden: bool}
Return values
array{name: ?string, nameEn: ?string, pluralName: ?string, pluralNameEn: ?string, slug: ?string, slugEn: ?string, hidden: bool}

        
On this page

Search results