mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -40,7 +40,7 @@ class AccompanyingCourseDocument extends Document implements HasScopesInterface,
|
||||
return $this->course;
|
||||
}
|
||||
|
||||
public function getId()
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -50,7 +50,7 @@ class DocumentCategory
|
||||
return $this->bundleId;
|
||||
}
|
||||
|
||||
public function getDocumentClass()
|
||||
public function getDocumentClass(): ?string
|
||||
{
|
||||
return $this->documentClass;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -186,7 +186,7 @@ class StoredObject implements Document, TrackCreationInterface
|
||||
/**
|
||||
* @deprecated use method "getFilename()"
|
||||
*/
|
||||
public function getObjectName()
|
||||
public function getObjectName(): string
|
||||
{
|
||||
return $this->getFilename();
|
||||
}
|
||||
|
Reference in New Issue
Block a user