Organ
in package
uses
IdentifiableTrait
Organ entity.
Note that this entity is derived from the decisions themself.
Attributes
- #[Entity]
Table of Contents
Properties
- $abbr : string
- Abbreviation (only for when organs are created).
- $abrogationDate : DateTime|null
- Abrogation date.
- $foundation : Foundation
- Reference to foundation of organ.
- $foundationDate : DateTime
- Foundation date.
- $id : int|null
- The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
- $members : Collection<string|int, OrganMember>
- Reference to members.
- $name : string
- Name (only for when organs are created).
- $organInformation : Collection<string|int, OrganInformation>
- All organInformation for this organ.
- $subdecisions : Collection<string|int, SubDecision>
- Reference to subdecisions.
- $type : OrganTypes
- Type of the organ.
Methods
- __construct() : mixed
- addSubdecision() : void
- Add a subdecision.
- addSubdecisions() : void
- Add multiple subdecisions.
- getAbbr() : string
- Get the abbreviation.
- getAbrogationDate() : DateTime|null
- Get the abrogation date.
- getApprovedOrganInformation() : OrganInformation|null
- Returns the approved information for an organ.
- getFoundation() : Foundation
- Get the foundation.
- getFoundationDate() : DateTime
- Get the foundation date.
- getId() : int|null
- Get the identifier of the object.
- getMembers() : Collection<string|int, OrganMember>
- Get the members.
- getName() : string
- Get the name.
- getOrderedSubdecisions() : array<string|int, SubDecision>
- Get all subdecisions of this organ ordered by upload order.
- getOrganInformation() : Collection<string|int, OrganInformation>
- Returns all organ information.
- getSubdecisions() : Collection<string|int, SubDecision>
- Get all subdecisions of this organ.
- getType() : OrganTypes
- Get the type.
- isAbrogated() : bool
- setAbbr() : void
- Set the abbreviation.
- setAbrogationDate() : void
- Set the abrogation date.
- setFoundation() : void
- Set the foundation.
- setFoundationDate() : void
- Set the foundation date.
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setName() : void
- Set the name.
- setType() : void
- Set the type.
Properties
$abbr
Abbreviation (only for when organs are created).
protected
string
$abbr
Attributes
- #[Column]
- $type: 'string'
$abrogationDate
Abrogation date.
protected
DateTime|null
$abrogationDate
= null
Attributes
- #[Column]
- $type: 'date'
- $nullable: true
$foundation
Reference to foundation of organ.
protected
Foundation
$foundation
Attributes
- #[JoinColumn]
- $name: 'r_meeting_type'
- $referencedColumnName: 'meeting_type'
- #[JoinColumn]
- $name: 'r_meeting_number'
- $referencedColumnName: 'meeting_number'
- #[JoinColumn]
- $name: 'r_decision_point'
- $referencedColumnName: 'decision_point'
- #[JoinColumn]
- $name: 'r_decision_number'
- $referencedColumnName: 'decision_number'
- #[JoinColumn]
- $name: 'r_sequence'
- $referencedColumnName: 'sequence'
- #[OneToOne]
- $inversedBy: 'organ'
- $targetEntity: \Decision\Model\SubDecision\Foundation::class
$foundationDate
Foundation date.
protected
DateTime
$foundationDate
Attributes
- #[Column]
- $type: 'date'
$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]
$members
Reference to members.
protected
Collection<string|int, OrganMember>
$members
Attributes
- #[OneToMany]
- $mappedBy: 'organ'
- $targetEntity: \Decision\Model\OrganMember::class
$name
Name (only for when organs are created).
protected
string
$name
Attributes
- #[Column]
- $type: 'string'
$organInformation
All organInformation for this organ.
protected
Collection<string|int, OrganInformation>
$organInformation
Attributes
- #[OneToMany]
- $mappedBy: 'organ'
- $targetEntity: \Decision\Model\OrganInformation::class
- $cascade: ['persist', 'remove']
$subdecisions
Reference to subdecisions.
protected
Collection<string|int, SubDecision>
$subdecisions
Attributes
- #[InverseJoinColumn]
- $name: 'meeting_type'
- $referencedColumnName: 'meeting_type'
- $nullable: false
- #[InverseJoinColumn]
- $name: 'meeting_number'
- $referencedColumnName: 'meeting_number'
- $nullable: false
- #[InverseJoinColumn]
- $name: 'decision_point'
- $referencedColumnName: 'decision_point'
- $nullable: false
- #[InverseJoinColumn]
- $name: 'decision_number'
- $referencedColumnName: 'decision_number'
- $nullable: false
- #[InverseJoinColumn]
- $name: 'subdecision_sequence'
- $referencedColumnName: 'sequence'
- $nullable: false
- #[JoinColumn]
- $name: 'organ_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[JoinTable]
- $name: 'organs_subdecisions'
- #[ManyToMany]
- $targetEntity: \Decision\Model\SubDecision::class
$type
Type of the organ.
protected
OrganTypes
$type
Attributes
- #[Column]
- $type: 'string'
- $enumType: \Decision\Model\Enums\OrganTypes::class
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>
getAbbr()
Get the abbreviation.
public
getAbbr() : string
Return values
stringgetAbrogationDate()
Get the abrogation date.
public
getAbrogationDate() : DateTime|null
Return values
DateTime|nullgetApprovedOrganInformation()
Returns the approved information for an organ.
public
getApprovedOrganInformation() : OrganInformation|null
Return values
OrganInformation|nullgetFoundation()
Get the foundation.
public
getFoundation() : Foundation
Return values
FoundationgetFoundationDate()
Get the foundation date.
public
getFoundationDate() : DateTime
Return values
DateTimegetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetMembers()
Get the members.
public
getMembers() : Collection<string|int, OrganMember>
Return values
Collection<string|int, OrganMember>getName()
Get the name.
public
getName() : string
Return values
stringgetOrderedSubdecisions()
Get all subdecisions of this organ ordered by upload order.
public
getOrderedSubdecisions() : array<string|int, SubDecision>
Return values
array<string|int, SubDecision> —subdecisions[0]->getDate < subdecision[1]->getDate
getOrganInformation()
Returns all organ information.
public
getOrganInformation() : Collection<string|int, OrganInformation>
Return values
Collection<string|int, OrganInformation>getSubdecisions()
Get all subdecisions of this organ.
public
getSubdecisions() : Collection<string|int, SubDecision>
Return values
Collection<string|int, SubDecision>getType()
Get the type.
public
getType() : OrganTypes
Return values
OrganTypesisAbrogated()
public
isAbrogated() : bool
Return values
boolsetAbbr()
Set the abbreviation.
public
setAbbr(string $abbr) : void
Parameters
- $abbr : string
setAbrogationDate()
Set the abrogation date.
public
setAbrogationDate(DateTime|null $abrogationDate) : void
Parameters
- $abrogationDate : DateTime|null
setFoundation()
Set the foundation.
public
setFoundation(Foundation $foundation) : void
Parameters
- $foundation : Foundation
setFoundationDate()
Set the foundation date.
public
setFoundationDate(DateTime $foundationDate) : void
Parameters
- $foundationDate : DateTime
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
setName()
Set the name.
public
setName(string $name) : void
Parameters
- $name : string
setType()
Set the type.
public
setType(OrganTypes $type) : void
Parameters
- $type : OrganTypes