Newscoop\Entity\Section::__construct PHP Метод

__construct() публичный Метод

public __construct ( integer $number, string $name, Newscoop\Entity\Issue $issue = null )
$number integer
$name string
$issue Newscoop\Entity\Issue
    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();
        }
    }