php cs fixer

This commit is contained in:
Dennis Eichhorn 2018-12-28 19:13:17 +01:00
parent cc71235027
commit 0573b0155d

View File

@ -108,12 +108,12 @@ class Event
return $this->start; return $this->start;
} }
public function setStart(\DateTime $start) public function setStart(\DateTime $start) : void
{ {
$this->start = $start; $this->start = $start;
} }
public function setEnd(\DateTime $end) public function setEnd(\DateTime $end) : void
{ {
$this->end = $end; $this->end = $end;
} }
@ -148,7 +148,7 @@ class Event
return $this->calendar; return $this->calendar;
} }
public function setDescription(string $description) public function setDescription(string $description) : void
{ {
$this->description = $description; $this->description = $description;
} }
@ -158,7 +158,7 @@ class Event
return $this->description; return $this->description;
} }
public function setName(string $name) public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }
@ -168,7 +168,7 @@ class Event
return $this->name; return $this->name;
} }
public function addTask(Task $task) public function addTask(Task $task) : void
{ {
if ($task->getId() !== 0) { if ($task->getId() !== 0) {
$this->tasks[$task->getId()] = $task; $this->tasks[$task->getId()] = $task;
@ -208,7 +208,7 @@ class Event
return $this->id; return $this->id;
} }
public function setType(int $type) public function setType(int $type) : void
{ {
if (!EventType::isValidValue($type)) { if (!EventType::isValidValue($type)) {
throw new InvalidEnumValue($type); throw new InvalidEnumValue($type);
@ -237,17 +237,17 @@ class Event
return $this->earnings; return $this->earnings;
} }
public function setCosts(Money $costs) public function setCosts(Money $costs) : void
{ {
$this->costs = $costs; $this->costs = $costs;
} }
public function setBudget(Money $budget) public function setBudget(Money $budget) : void
{ {
$this->budget = $budget; $this->budget = $budget;
} }
public function setEarnings(Money $earnings) public function setEarnings(Money $earnings) : void
{ {
$this->earnings = $earnings; $this->earnings = $earnings;
} }
@ -277,7 +277,7 @@ class Event
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy(int $createdBy) public function setCreatedBy(int $createdBy) : void
{ {
$this->createdBy = $createdBy; $this->createdBy = $createdBy;
} }