<?php

namespace App\Integration\Providers\Alliance3\DTO;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PolicyShortInfoList DTO
 * @subpackage Structs
 */
class PolicyShortInfoList extends AbstractStructBase
{
    /**
     * The record
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \App\Integration\Providers\Alliance3\DTO\PolicyShortInfo[]
     */
    public $record;
    /**
     * Constructor method for PolicyShortInfoList
     * @uses PolicyShortInfoList::setRecord()
     * @param \App\Integration\Providers\Alliance3\DTO\PolicyShortInfo[] $record
     */
    public function __construct(array $record = array())
    {
        $this
            ->setRecord($record);
    }
    /**
     * Get record value
     * @return \App\Integration\Providers\Alliance3\DTO\PolicyShortInfo[]|null
     */
    public function getRecord()
    {
        return $this->record;
    }
    /**
     * Set record value
     * @param \App\Integration\Providers\Alliance3\DTO\PolicyShortInfo[] $record
     * @return \App\Integration\Providers\Alliance3\DTO\PolicyShortInfoList
     */
    public function setRecord(array $record = array())
    {
        $this->record = $record;
        return $this;
    }
    /**
     * Add item to record value
     * @throws \InvalidArgumentException
     * @param \App\Integration\Providers\Alliance3\DTO\PolicyShortInfo $item
     * @return \App\Integration\Providers\Alliance3\DTO\PolicyShortInfoList
     */
    public function addToRecord(\App\Integration\Providers\Alliance3\DTO\PolicyShortInfo $item)
    {
        $this->record[] = $item;
        return $this;
    }
}
