Decision
in package
Decision model.
Attributes
- #[Entity]
Table of Contents
Properties
- $annulledBy : Annulment|null
- Annulled by.
- $content : string
- Content.
- $meeting : Meeting
- Meeting.
- $meeting_number : int
- Meeting number.
- $meeting_type : MeetingTypes
- Meeting type.
- $number : int
- Decision number.
- $point : int
- Point in the meeting in which the decision was made.
- $subdecisions : Collection<string|int, SubDecision>
- Subdecisions.
Methods
- __construct() : mixed
- addSubdecision() : void
- Add a subdecision.
- addSubdecisions() : void
- Add multiple subdecisions.
- getAnnulledBy() : Annulment|null
- Get the subdecision by which this decision is annulled.
- getContent() : string
- Get decision content.
- getMeeting() : Meeting
- Get the meeting.
- getMeetingNumber() : int
- Get the meeting number.
- getMeetingType() : MeetingTypes
- Get the meeting type.
- getNumber() : int
- Get the decision number.
- getPoint() : int
- Get the point number.
- getSubdecisions() : Collection<string|int, SubDecision>
- Get the subdecisions.
- isAnnulled() : bool
- Check if this decision is annulled by another decision.
- setContent() : void
- Set decision content.
- setMeeting() : void
- Set the meeting.
- setNumber() : void
- Set the decision number.
- setPoint() : void
- Set the point number.
Properties
$annulledBy
Annulled by.
protected
Annulment|null
$annulledBy
= null
Attributes
- #[OneToOne]
- $targetEntity: \Decision\Model\SubDecision\Annulment::class
- $mappedBy: 'target'
$content
Content.
protected
string
$content
Generated from subdecisions.
Attributes
- #[Column]
- $type: 'text'
$meeting
Meeting.
protected
Meeting
$meeting
Attributes
- #[JoinColumn]
- $name: 'meeting_type'
- $referencedColumnName: 'type'
- $nullable: false
- #[JoinColumn]
- $name: 'meeting_number'
- $referencedColumnName: 'number'
- $nullable: false
- #[ManyToOne]
- $targetEntity: \Decision\Model\Meeting::class
- $inversedBy: 'decisions'
$meeting_number
Meeting number.
protected
int
$meeting_number
NOTE: This is a hack to make the meeting a primary key here.
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$meeting_type
Meeting type.
protected
MeetingTypes
$meeting_type
NOTE: This is a hack to make the meeting a primary key here.
Attributes
- #[Column]
- $type: 'string'
- $enumType: \Decision\Model\Enums\MeetingTypes::class
- #[Id]
$number
Decision number.
protected
int
$number
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$point
Point in the meeting in which the decision was made.
protected
int
$point
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$subdecisions
Subdecisions.
protected
Collection<string|int, SubDecision>
$subdecisions
Attributes
- #[OneToMany]
- $targetEntity: \Decision\Model\SubDecision::class
- $mappedBy: 'decision'
- $cascade: ['persist', 'remove']
- #[OrderBy]
- $value: ['sequence' => 'ASC']
Methods
__construct()
public
__construct() : mixed
addSubdecision()
Add a subdecision.
public
addSubdecision(SubDecision $subdecision) : void
Parameters
- $subdecision : SubDecision
addSubdecisions()
Add multiple subdecisions.
public
addSubdecisions(array<string|int, SubDecision> $subdecisions) : void
Parameters
- $subdecisions : array<string|int, SubDecision>
getAnnulledBy()
Get the subdecision by which this decision is annulled.
public
getAnnulledBy() : Annulment|null
Or null, if it wasn't annulled.
Return values
Annulment|nullgetContent()
Get decision content.
public
getContent() : string
Return values
stringgetMeeting()
Get the meeting.
public
getMeeting() : Meeting
Return values
MeetinggetMeetingNumber()
Get the meeting number.
public
getMeetingNumber() : int
Return values
intgetMeetingType()
Get the meeting type.
public
getMeetingType() : MeetingTypes
Return values
MeetingTypesgetNumber()
Get the decision number.
public
getNumber() : int
Return values
intgetPoint()
Get the point number.
public
getPoint() : int
Return values
intgetSubdecisions()
Get the subdecisions.
public
getSubdecisions() : Collection<string|int, SubDecision>
Return values
Collection<string|int, SubDecision>isAnnulled()
Check if this decision is annulled by another decision.
public
isAnnulled() : bool
Return values
boolsetContent()
Set decision content.
public
setContent(string $content) : void
Parameters
- $content : string
setMeeting()
Set the meeting.
public
setMeeting(Meeting $meeting) : void
Parameters
- $meeting : Meeting
setNumber()
Set the decision number.
public
setNumber(int $number) : void
Parameters
- $number : int
setPoint()
Set the point number.
public
setPoint(int $point) : void
Parameters
- $point : int