id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Sets access. * * @param Access $access * * @return $this */ public function setAccess(Access $access) { $this->access = $access; return $this; } /** * Gets access. * * @return Access */ public function getAccess() { return $this->access; } /** * Sets medalDate. * * @param \DateTime $medalDate * * @return $this */ public function setMedalDate(\DateTime $medalDate = null) { $this->medalDate = $medalDate; return $this; } /** * Gets medalDate. * * @return \DateTime */ public function getMedalDate() { return $this->medalDate ? $this->medalDate->format('Y-m-d') : $this->medalDate; } /** * Sets medalType. * * @param string $medalType * * @return $this */ public function setMedalType($medalType) { $this->medalType = $medalType; return $this; } /** * Gets medalType. * * @return string */ public function getMedalType() { return $this->medalType; } /** * Sets otherMedalType. * * @param string $otherMedalType * * @return $this */ public function setOtherMedalType($otherMedalType) { $this->otherMedalType = $otherMedalType; return $this; } /** * Gets otherMedalType. * * @return string */ public function getOtherMedalType() { return $this->otherMedalType; } /** * Gets full label. * * @return array */ public function getFullLabelTemplate() { return [ $this->getMedalDate(), ['value' => $this->getMedalType(), 'translate' => true], $this->getOtherMedalType() ]; } }