<?php

namespace \Losc\CucmBundle\Model\Webservice\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for pageSections StructType
 * @subpackage Structs
 */
class PageSections extends AbstractStructBase
{
    /**
     * The pageSection
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\PageSection[]
     */
    public $pageSection;
    /**
     * Constructor method for pageSections
     * @uses PageSections::setPageSection()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\PageSection[] $pageSection
     */
    public function __construct(array $pageSection = array())
    {
        $this
            ->setPageSection($pageSection);
    }
    /**
     * Get pageSection value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\PageSection[]|null
     */
    public function getPageSection()
    {
        return $this->pageSection;
    }
    /**
     * Set pageSection value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\PageSection[] $pageSection
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\PageSections
     */
    public function setPageSection(array $pageSection = array())
    {
        $this->pageSection = $pageSection;
        return $this;
    }
    /**
     * Add item to pageSection value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\PageSection $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\PageSections
     */
    public function addToPageSection(\\Losc\CucmBundle\Model\Webservice\StructType\PageSection $item)
    {
        $this->pageSection[] = $item;
        return $this;
    }
}
