id; } /** * @return Timesheet[] */ public function getTimesheets(): array { return $this->timesheets; } /** * @return Project */ public function getProject() { return $this->project; } /** * @param Project $project * @return Activity */ public function setProject($project) { $this->project = $project; return $this; } /** * @param string $name * @return Activity */ public function setName($name) { $this->name = $name; return $this; } /** * @return string */ public function getName() { return $this->name; } /** * @param string $comment * @return Activity */ public function setComment($comment) { $this->comment = $comment; return $this; } /** * @return string */ public function getComment() { return $this->comment; } /** * @param bool $visible * @return Activity */ public function setVisible($visible) { $this->visible = $visible; return $this; } /** * @return bool */ public function getVisible() { return $this->visible; } /** * @return float */ public function getFixedRate(): ?float { return $this->fixedRate; } /** * @param float $fixedRate * @return Activity */ public function setFixedRate(?float $fixedRate) { $this->fixedRate = $fixedRate; return $this; } /** * @return float */ public function getHourlyRate(): ?float { return $this->hourlyRate; } /** * @param float $hourlyRate * @return Activity */ public function setHourlyRate(?float $hourlyRate) { $this->hourlyRate = $hourlyRate; return $this; } /** * @return string */ public function __toString() { return $this->getName(); } }