Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent d9a47fdee9
commit 9fcc1634f5
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -40,7 +40,7 @@ class AccompanyingCourseDocument extends Document implements HasScopesInterface,
return $this->course;
}
public function getId()
public function getId(): ?int
{
return $this->id;
}

View File

@@ -85,7 +85,7 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
return (string) $this->getObject()?->getTitle();
}
public function getUser()
public function getUser(): ?\Chill\MainBundle\Entity\User
{
return $this->user;
}

View File

@@ -50,7 +50,7 @@ class DocumentCategory
return $this->bundleId;
}
public function getDocumentClass()
public function getDocumentClass(): ?string
{
return $this->documentClass;
}

View File

@@ -36,12 +36,12 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
#[ORM\ManyToOne(targetEntity: Scope::class)]
private ?Scope $scope = null;
public function getCenter()
public function getCenter(): ?\Chill\MainBundle\Entity\Center
{
return $this->getPerson()->getCenter();
}
public function getId()
public function getId(): ?int
{
return $this->id;
}

View File

@@ -186,7 +186,7 @@ class StoredObject implements Document, TrackCreationInterface
/**
* @deprecated use method "getFilename()"
*/
public function getObjectName()
public function getObjectName(): string
{
return $this->getFilename();
}