/** * Get name * * @return string */ public function getName() { if ($this->subscription->getPublication() === null) { return ''; } return $this->article->getName(); }
/** * Get name * * @return string */ public function getName() { if ($this->subscription->getPublication() === null) { return ''; } foreach ($this->subscription->getPublication()->getIssues() as $issue) { if ($this->hasLanguage() && $issue->getLanguage() !== $this->language) { continue; } foreach ($issue->getSections() as $section) { if ($section->getNumber() == $this->sectionNumber) { return $section->getName(); } } } return ''; }