<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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