Method setX with return this (and not void)

This commit is contained in:
Marc Ducobu 2021-06-03 20:14:26 +02:00
parent 0f635ca51a
commit 743d6cd0bf

View File

@ -313,9 +313,11 @@ class ActivityType
return $this->category; return $this->category;
} }
public function setCategory(?ActivityTypeCategory $category): void public function setCategory(?ActivityTypeCategory $category): self
{ {
$this->category = $category; $this->category = $category;
return $this;
} }
public function getPersonVisible(): int public function getPersonVisible(): int
@ -323,9 +325,11 @@ class ActivityType
return $this->personVisible; return $this->personVisible;
} }
public function setPersonVisible(int $personVisible): void public function setPersonVisible(int $personVisible): self
{ {
$this->personVisible = $personVisible; $this->personVisible = $personVisible;
return $this;
} }
public function getPersonLabel(): string public function getPersonLabel(): string
@ -333,9 +337,11 @@ class ActivityType
return $this->personLabel; return $this->personLabel;
} }
public function setPersonLabel(string $personLabel): void public function setPersonLabel(string $personLabel): self
{ {
$this->personLabel = $personLabel; $this->personLabel = $personLabel;
return $this;
} }
public function getUserVisible(): int public function getUserVisible(): int
@ -343,9 +349,11 @@ class ActivityType
return $this->userVisible; return $this->userVisible;
} }
public function setUserVisible(int $userVisible): void public function setUserVisible(int $userVisible): self
{ {
$this->userVisible = $userVisible; $this->userVisible = $userVisible;
return $this;
} }
public function getUserLabel(): string public function getUserLabel(): string
@ -353,9 +361,11 @@ class ActivityType
return $this->userLabel; return $this->userLabel;
} }
public function setUserLabel(string $userLabel): void public function setUserLabel(string $userLabel): self
{ {
$this->userLabel = $userLabel; $this->userLabel = $userLabel;
return $this;
} }
public function getDateVisible(): int public function getDateVisible(): int
@ -363,9 +373,11 @@ class ActivityType
return $this->dateVisible; return $this->dateVisible;
} }
public function setDateVisible(int $dateVisible): void public function setDateVisible(int $dateVisible): self
{ {
$this->dateVisible = $dateVisible; $this->dateVisible = $dateVisible;
return $this;
} }
public function getDateLabel(): string public function getDateLabel(): string
@ -373,9 +385,11 @@ class ActivityType
return $this->dateLabel; return $this->dateLabel;
} }
public function setDateLabel(string $dateLabel): void public function setDateLabel(string $dateLabel): self
{ {
$this->dateLabel = $dateLabel; $this->dateLabel = $dateLabel;
return $this;
} }
public function getPlaceVisible(): int public function getPlaceVisible(): int
@ -383,9 +397,11 @@ class ActivityType
return $this->placeVisible; return $this->placeVisible;
} }
public function setPlaceVisible(int $placeVisible): void public function setPlaceVisible(int $placeVisible): self
{ {
$this->placeVisible = $placeVisible; $this->placeVisible = $placeVisible;
return $this;
} }
public function getPlaceLabel(): string public function getPlaceLabel(): string
@ -393,9 +409,11 @@ class ActivityType
return $this->placeLabel; return $this->placeLabel;
} }
public function setPlaceLabel(string $placeLabel): void public function setPlaceLabel(string $placeLabel): self
{ {
$this->placeLabel = $placeLabel; $this->placeLabel = $placeLabel;
return $this;
} }
public function getPersonsVisible(): int public function getPersonsVisible(): int
@ -403,9 +421,11 @@ class ActivityType
return $this->personsVisible; return $this->personsVisible;
} }
public function setPersonsVisible(int $personsVisible): void public function setPersonsVisible(int $personsVisible): self
{ {
$this->personsVisible = $personsVisible; $this->personsVisible = $personsVisible;
return $this;
} }
public function getPersonsLabel(): string public function getPersonsLabel(): string
@ -413,9 +433,11 @@ class ActivityType
return $this->personsLabel; return $this->personsLabel;
} }
public function setPersonsLabel(string $personsLabel): void public function setPersonsLabel(string $personsLabel): self
{ {
$this->personsLabel = $personsLabel; $this->personsLabel = $personsLabel;
return $this;
} }
public function getThirdPartiesVisible(): int public function getThirdPartiesVisible(): int
@ -423,9 +445,11 @@ class ActivityType
return $this->thirdPartiesVisible; return $this->thirdPartiesVisible;
} }
public function setThirdPartiesVisible(int $thirdPartiesVisible): void public function setThirdPartiesVisible(int $thirdPartiesVisible): self
{ {
$this->thirdPartiesVisible = $thirdPartiesVisible; $this->thirdPartiesVisible = $thirdPartiesVisible;
return $this;
} }
public function getThirdPartiesLabel(): string public function getThirdPartiesLabel(): string
@ -433,9 +457,11 @@ class ActivityType
return $this->thirdPartiesLabel; return $this->thirdPartiesLabel;
} }
public function setThirdPartiesLabel(string $thirdPartiesLabel): void public function setThirdPartiesLabel(string $thirdPartiesLabel): self
{ {
$this->thirdPartiesLabel = $thirdPartiesLabel; $this->thirdPartiesLabel = $thirdPartiesLabel;
return $this;
} }
public function getDurationTimeVisible(): int public function getDurationTimeVisible(): int
@ -443,9 +469,11 @@ class ActivityType
return $this->durationTimeVisible; return $this->durationTimeVisible;
} }
public function setDurationTimeVisible(int $durationTimeVisible): void public function setDurationTimeVisible(int $durationTimeVisible): self
{ {
$this->durationTimeVisible = $durationTimeVisible; $this->durationTimeVisible = $durationTimeVisible;
return $this;
} }
public function getDurationTimeLabel(): string public function getDurationTimeLabel(): string
@ -453,9 +481,11 @@ class ActivityType
return $this->durationTimeLabel; return $this->durationTimeLabel;
} }
public function setDurationTimeLabel(string $durationTimeLabel): void public function setDurationTimeLabel(string $durationTimeLabel): self
{ {
$this->durationTimeLabel = $durationTimeLabel; $this->durationTimeLabel = $durationTimeLabel;
return $this;
} }
public function getTravelTimeVisible(): int public function getTravelTimeVisible(): int
@ -463,9 +493,11 @@ class ActivityType
return $this->travelTimeVisible; return $this->travelTimeVisible;
} }
public function setTravelTimeVisible(int $TravelTimeVisible): void public function setTravelTimeVisible(int $TravelTimeVisible): self
{ {
$this->travelTimeVisible = $TravelTimeVisible; $this->travelTimeVisible = $TravelTimeVisible;
return $this;
} }
public function getTravelTimeLabel(): string public function getTravelTimeLabel(): string
@ -473,9 +505,11 @@ class ActivityType
return $this->travelTimeLabel; return $this->travelTimeLabel;
} }
public function setTravelTimeLabel(string $TravelTimeLabel): void public function setTravelTimeLabel(string $TravelTimeLabel): self
{ {
$this->travelTimeLabel = $TravelTimeLabel; $this->travelTimeLabel = $TravelTimeLabel;
return $this;
} }
public function getAttendeeVisible(): int public function getAttendeeVisible(): int
@ -483,9 +517,11 @@ class ActivityType
return $this->attendeeVisible; return $this->attendeeVisible;
} }
public function setAttendeeVisible(int $attendeeVisible): void public function setAttendeeVisible(int $attendeeVisible): self
{ {
$this->attendeeVisible = $attendeeVisible; $this->attendeeVisible = $attendeeVisible;
return $this;
} }
public function getAttendeeLabel(): string public function getAttendeeLabel(): string
@ -493,9 +529,11 @@ class ActivityType
return $this->attendeeLabel; return $this->attendeeLabel;
} }
public function setAttendeeLabel(string $attendeeLabel): void public function setAttendeeLabel(string $attendeeLabel): self
{ {
$this->attendeeLabel = $attendeeLabel; $this->attendeeLabel = $attendeeLabel;
return $this;
} }
public function getReasonsVisible(): int public function getReasonsVisible(): int
@ -503,9 +541,11 @@ class ActivityType
return $this->reasonsVisible; return $this->reasonsVisible;
} }
public function setReasonsVisible(int $reasonsVisible): void public function setReasonsVisible(int $reasonsVisible): self
{ {
$this->reasonsVisible = $reasonsVisible; $this->reasonsVisible = $reasonsVisible;
return $this;
} }
public function getReasonsLabel(): string public function getReasonsLabel(): string
@ -513,9 +553,11 @@ class ActivityType
return $this->reasonsLabel; return $this->reasonsLabel;
} }
public function setReasonsLabel(string $reasonsLabel): void public function setReasonsLabel(string $reasonsLabel): self
{ {
$this->reasonsLabel = $reasonsLabel; $this->reasonsLabel = $reasonsLabel;
return $this;
} }
public function getCommentVisible(): int public function getCommentVisible(): int
@ -523,9 +565,11 @@ class ActivityType
return $this->commentVisible; return $this->commentVisible;
} }
public function setCommentVisible(int $commentVisible): void public function setCommentVisible(int $commentVisible): self
{ {
$this->commentVisible = $commentVisible; $this->commentVisible = $commentVisible;
return $this;
} }
public function getCommentLabel(): string public function getCommentLabel(): string
@ -533,9 +577,11 @@ class ActivityType
return $this->commentLabel; return $this->commentLabel;
} }
public function setCommentLabel(string $commentLabel): void public function setCommentLabel(string $commentLabel): self
{ {
$this->commentLabel = $commentLabel; $this->commentLabel = $commentLabel;
return $this;
} }
public function getSentReceivedVisible(): int public function getSentReceivedVisible(): int
@ -543,9 +589,11 @@ class ActivityType
return $this->sentReceivedVisible; return $this->sentReceivedVisible;
} }
public function setSentReceivedVisible(int $sentReceivedVisible): void public function setSentReceivedVisible(int $sentReceivedVisible): self
{ {
$this->sentReceivedVisible = $sentReceivedVisible; $this->sentReceivedVisible = $sentReceivedVisible;
return $this;
} }
public function getSentReceivedLabel(): string public function getSentReceivedLabel(): string
@ -553,9 +601,11 @@ class ActivityType
return $this->sentReceivedLabel; return $this->sentReceivedLabel;
} }
public function setSentReceivedLabel(string $sentReceivedLabel): void public function setSentReceivedLabel(string $sentReceivedLabel): self
{ {
$this->sentReceivedLabel = $sentReceivedLabel; $this->sentReceivedLabel = $sentReceivedLabel;
return $this;
} }
public function getDocumentsVisible(): int public function getDocumentsVisible(): int
@ -563,9 +613,11 @@ class ActivityType
return $this->documentsVisible; return $this->documentsVisible;
} }
public function setDocumentsVisible(int $documentsVisible): void public function setDocumentsVisible(int $documentsVisible): self
{ {
$this->documentsVisible = $documentsVisible; $this->documentsVisible = $documentsVisible;
return $this;
} }
public function getDocumentsLabel(): string public function getDocumentsLabel(): string
@ -573,9 +625,11 @@ class ActivityType
return $this->documentsLabel; return $this->documentsLabel;
} }
public function setDocumentsLabel(string $documentsLabel): void public function setDocumentsLabel(string $documentsLabel): self
{ {
$this->documentsLabel = $documentsLabel; $this->documentsLabel = $documentsLabel;
return $this;
} }
public function getUsersVisible(): int public function getUsersVisible(): int
@ -583,9 +637,11 @@ class ActivityType
return $this->usersVisible; return $this->usersVisible;
} }
public function setUsersVisible(int $usersVisible): void public function setUsersVisible(int $usersVisible): self
{ {
$this->usersVisible = $usersVisible; $this->usersVisible = $usersVisible;
return $this;
} }
public function getUsersLabel(): string public function getUsersLabel(): string
@ -593,9 +649,11 @@ class ActivityType
return $this->usersLabel; return $this->usersLabel;
} }
public function setUsersLabel(string $usersLabel): void public function setUsersLabel(string $usersLabel): self
{ {
$this->usersLabel = $usersLabel; $this->usersLabel = $usersLabel;
return $this;
} }
public function getEmergencyVisible(): int public function getEmergencyVisible(): int
@ -603,9 +661,11 @@ class ActivityType
return $this->emergencyVisible; return $this->emergencyVisible;
} }
public function setEmergencyVisible(int $emergencyVisible): void public function setEmergencyVisible(int $emergencyVisible): self
{ {
$this->emergencyVisible = $emergencyVisible; $this->emergencyVisible = $emergencyVisible;
return $this;
} }
public function getEmergencyLabel(): string public function getEmergencyLabel(): string
@ -613,9 +673,11 @@ class ActivityType
return $this->emergencyLabel; return $this->emergencyLabel;
} }
public function setEmergencyLabel(string $emergencyLabel): void public function setEmergencyLabel(string $emergencyLabel): self
{ {
$this->emergencyLabel = $emergencyLabel; $this->emergencyLabel = $emergencyLabel;
return $this;
} }
public function getAccompanyingPeriodVisible(): int public function getAccompanyingPeriodVisible(): int
@ -623,9 +685,11 @@ class ActivityType
return $this->accompanyingPeriodVisible; return $this->accompanyingPeriodVisible;
} }
public function setAccompanyingPeriodVisible(int $accompanyingPeriodVisible): void public function setAccompanyingPeriodVisible(int $accompanyingPeriodVisible): self
{ {
$this->accompanyingPeriodVisible = $accompanyingPeriodVisible; $this->accompanyingPeriodVisible = $accompanyingPeriodVisible;
return $this;
} }
public function getAccompanyingPeriodLabel(): string public function getAccompanyingPeriodLabel(): string
@ -633,9 +697,11 @@ class ActivityType
return $this->accompanyingPeriodLabel; return $this->accompanyingPeriodLabel;
} }
public function setAccompanyingPeriodLabel(string $accompanyingPeriodLabel): void public function setAccompanyingPeriodLabel(string $accompanyingPeriodLabel): self
{ {
$this->accompanyingPeriodLabel = $accompanyingPeriodLabel; $this->accompanyingPeriodLabel = $accompanyingPeriodLabel;
return $this;
} }
public function getSocialDataVisible(): int public function getSocialDataVisible(): int
@ -643,9 +709,11 @@ class ActivityType
return $this->socialDataVisible; return $this->socialDataVisible;
} }
public function setSocialDataVisible(int $socialDataVisible): void public function setSocialDataVisible(int $socialDataVisible): self
{ {
$this->socialDataVisible = $socialDataVisible; $this->socialDataVisible = $socialDataVisible;
return $this;
} }
public function getSocialDataLabel(): string public function getSocialDataLabel(): string
@ -653,9 +721,11 @@ class ActivityType
return $this->socialDataLabel; return $this->socialDataLabel;
} }
public function setSocialDataLabel(string $socialDataLabel): void public function setSocialDataLabel(string $socialDataLabel): self
{ {
$this->socialDataLabel = $socialDataLabel; $this->socialDataLabel = $socialDataLabel;
return $this;
} }
public function isVisible(string $field): bool public function isVisible(string $field): bool