public function getName($number, \Newscoop\Entity\Publication $publication, \Newscoop\Entity\Language $language = null)
{
foreach ($publication->getIssues() as $issue) {
if ($language !== null && $issue->getLanguage() !== $language) {
continue;
}
foreach ($issue->getSections() as $section) {
if ($section->getNumber() == $number) {
return $section->getName();
}
}
}
return;
}