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
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
$period
The associated period.
protected
ActivityOptionCreationPeriod
$period
Attributes
- #[ManyToOne]
- $targetEntity: \Activity\Model\ActivityOptionCreationPeriod::class
- $inversedBy: 'maxActivities'
$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
Return values
int|nullgetOrgan()
public
getOrgan() : Organ
Return values
OrgangetPeriod()
public
getPeriod() : ActivityOptionCreationPeriod
Return values
ActivityOptionCreationPeriodgetValue()
public
getValue() : int
Return values
intsetId()
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
setOrgan()
Set the organ.
public
setOrgan(Organ $organ) : void
Parameters
- $organ : Organ
setPeriod()
Set the period.
public
setPeriod(ActivityOptionCreationPeriod $period) : void
Parameters
- $period : ActivityOptionCreationPeriod
setValue()
Set the value.
public
setValue(int $value) : void
Parameters
- $value : int
toArray()
Returns an associative array representation of this object.
public
toArray() : MaxActivitiesArrayType