public function __construct($number, $name, $issue = null) { $this->number = (int) $number; $this->name = (string) $name; if ($issue !== null) { $this->issue = $issue; $this->issue->addSection($this); $this->publication = $this->issue->getPublication(); $this->language = $this->issue->getLanguage(); } }