/** * Sets the application * * @param ApplicationInterface $application * @param string|null $status * @return $this */ public function setApplication(ApplicationInterface $application, $status = null) { $this->application = $application; $this->setTo($application->getJob()->getUser()->getInfo()->getEmail(), $application->getJob()->getUser()->getInfo()->getDisplayName(false)); $this->setVariablesFromApplication($application); return $this; }
/** * Gets the creation date of the application * * @return string */ protected function getDate() { /** @var $date \DateTime */ $date = $this->application->getDateCreated(); return strftime('%x', $date->getTimestamp()); }