change block personcontent to content more consistent with other templates and less need for if-statements

This commit is contained in:
2022-02-24 15:58:02 +01:00
parent f8ec0f85e5
commit c4e0b68ebe
64 changed files with 66 additions and 73 deletions

View File

@@ -24,22 +24,15 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
{
/**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*
* @var Person
*/
private $person;
private Person $person;
public function getCenter()
{
return $this->getPerson()->getCenter();
}
/**
* Get person.
*
* @return \Chill\MainBundle\Entity\Person
*/
public function getPerson()
public function getPerson(): Person
{
return $this->person;
}