Annulment
extends SubDecision
in package
Annulling a decision.
This decision references to a different decision. The given decision is annulled, as if it did never exist.
Note that this behaviour might not always work flawlessly. It is very complicated, and thus there might be edge cases that I didn't completely catch. If that is the case, let me know!
Also note that annulling decisions that annul is undefined behaviour!
Attributes
- #[Entity]
Table of Contents
Properties
- $content : string
- Content.
- $decision : Decision
- Decision.
- $decision_number : int
- Decision number.
- $decision_point : int
- Decision point.
- $meeting_number : int
- Meeting number.
- $meeting_type : MeetingTypes
- Meeting type.
- $member : Member|null
- The member involved in this sub-decision.
- $sequence : int
- Sub decision sequence number.
- $target : Decision
- Reference to the annulment of a decision.
Methods
- getContent() : string
- Get the content.
- getDecision() : Decision
- Get the decision.
- getDecisionNumber() : int
- Get the decision number.
- getDecisionPoint() : int
- Get the decision point number.
- getMeetingNumber() : int
- Get the meeting number.
- getMeetingType() : MeetingTypes
- Get the meeting type.
- getMember() : Member|null
- Get the member.
- getSequence() : int
- Get the sequence number.
- getTarget() : Decision
- Get the target.
- setContent() : void
- Set the content.
- setDecision() : void
- Set the decision.
- setMember() : void
- Set the member.
- setSequence() : void
- Set the sequence number.
- setTarget() : void
- Set the target.
- toGdprArray() : SubDecisionGdprArrayType
Properties
$content
Content.
protected
string
$content
Attributes
- #[Column]
- $type: 'text'
$decision
Decision.
protected
Decision
$decision
Attributes
- #[JoinColumn]
- $name: 'meeting_type'
- $referencedColumnName: 'meeting_type'
- #[JoinColumn]
- $name: 'meeting_number'
- $referencedColumnName: 'meeting_number'
- #[JoinColumn]
- $name: 'decision_point'
- $referencedColumnName: 'point'
- #[JoinColumn]
- $name: 'decision_number'
- $referencedColumnName: 'number'
- #[ManyToOne]
- $targetEntity: \Decision\Model\Decision::class
- $inversedBy: 'subdecisions'
$decision_number
Decision number.
protected
int
$decision_number
NOTE: This is a hack to make the decision a primary key here.
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$decision_point
Decision point.
protected
int
$decision_point
NOTE: This is a hack to make the decision a primary key here.
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$meeting_number
Meeting number.
protected
int
$meeting_number
NOTE: This is a hack to make the decision 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 decision a primary key here.
Attributes
- #[Column]
- $type: 'string'
- $enumType: \Decision\Model\Enums\MeetingTypes::class
- #[Id]
$member
The member involved in this sub-decision.
protected
Member|null
$member
= null
Not all sub-decisions require this, as such it is nullable. However, sub-decisions that need the guarantee that this is not null or need to specify an inverse side can do so using an association override.
Attributes
- #[JoinColumn]
- $name: 'lidnr'
- $referencedColumnName: 'lidnr'
- $nullable: true
- #[ManyToOne]
- $targetEntity: \Decision\Model\Member::class
$sequence
Sub decision sequence number.
protected
int
$sequence
Attributes
- #[Column]
- $type: 'integer'
- #[Id]
$target
Reference to the annulment of a decision.
protected
Decision
$target
Attributes
- #[JoinColumn]
- $name: 'r_meeting_type'
- $referencedColumnName: 'meeting_type'
- #[JoinColumn]
- $name: 'r_meeting_number'
- $referencedColumnName: 'meeting_number'
- #[JoinColumn]
- $name: 'r_decision_point'
- $referencedColumnName: 'point'
- #[JoinColumn]
- $name: 'r_decision_number'
- $referencedColumnName: 'number'
- #[OneToOne]
- $targetEntity: \Decision\Model\Decision::class
- $inversedBy: 'annulledBy'
Methods
getContent()
Get the content.
public
getContent() : string
Return values
stringgetDecision()
Get the decision.
public
getDecision() : Decision
Return values
DecisiongetDecisionNumber()
Get the decision number.
public
getDecisionNumber() : int
Return values
intgetDecisionPoint()
Get the decision point number.
public
getDecisionPoint() : int
Return values
intgetMeetingNumber()
Get the meeting number.
public
getMeetingNumber() : int
Return values
intgetMeetingType()
Get the meeting type.
public
getMeetingType() : MeetingTypes
Return values
MeetingTypesgetMember()
Get the member.
public
getMember() : Member|null
Return values
Member|nullgetSequence()
Get the sequence number.
public
getSequence() : int
Return values
intgetTarget()
Get the target.
public
getTarget() : Decision
Return values
DecisionsetContent()
Set the content.
public
setContent(string $content) : void
Parameters
- $content : string
setDecision()
Set the decision.
public
setDecision(Decision $decision) : void
Parameters
- $decision : Decision
setMember()
Set the member.
public
setMember(Member $member) : void
Parameters
- $member : Member
setSequence()
Set the sequence number.
public
setSequence(int $sequence) : void
Parameters
- $sequence : int
setTarget()
Set the target.
public
setTarget(Decision $target) : void
Parameters
- $target : Decision
toGdprArray()
public
toGdprArray() : SubDecisionGdprArrayType