Documentation

MaxActivities
in package
uses IdentifiableTrait

Max Activities model.

Contains the max amount of activities an organ may create options for Note that this is the limit per period!.

Tags
psalm-type

MaxActivitiesArrayType = array{ id: int, organ: OrganModel, value: int, }

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.
$organ  : Organ
Who created this activity.
$period  : ActivityOptionCreationPeriod
The associated period.
$value  : int
The value of the option.

Methods

getId()  : int|null
Get the identifier of the object.
getOrgan()  : Organ
getPeriod()  : ActivityOptionCreationPeriod
getValue()  : int
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setOrgan()  : void
Set the organ.
setPeriod()  : void
Set the period.
setValue()  : void
Set the value.
toArray()  : MaxActivitiesArrayType
Returns an associative array representation of this object.

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]

$organ

Who created this activity.

protected Organ $organ
Attributes
#[JoinColumn]
$referencedColumnName: 'id'
$nullable: false
#[ManyToOne]
$targetEntity: \Decision\Model\Organ::class

$value

The value of the option.

protected int $value
Attributes
#[Column]
$type: 'integer'

Methods

getId()

Get the identifier of the object.

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

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

setValue()

Set the value.

public setValue(int $value) : void
Parameters
$value : int

toArray()

Returns an associative array representation of this object.

public toArray() : MaxActivitiesArrayType
Return values
MaxActivitiesArrayType

        
On this page

Search results