<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TicketFooterNoteOverride StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:TicketFooterNoteOverride
 * @subpackage Structs
 */
class TicketFooterNoteOverride extends AbstractStructBase
{
    /**
     * The TicketFooterNotes
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfTicketFooterNote
     */
    public $TicketFooterNotes;
    /**
     * Constructor method for TicketFooterNoteOverride
     * @uses TicketFooterNoteOverride::setTicketFooterNotes()
     * @param \patest\ArrayType\ArrayOfTicketFooterNote $ticketFooterNotes
     */
    public function __construct(\patest\ArrayType\ArrayOfTicketFooterNote $ticketFooterNotes = null)
    {
        $this
            ->setTicketFooterNotes($ticketFooterNotes);
    }
    /**
     * Get TicketFooterNotes value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\ArrayType\ArrayOfTicketFooterNote|null
     */
    public function getTicketFooterNotes()
    {
        return isset($this->TicketFooterNotes) ? $this->TicketFooterNotes : null;
    }
    /**
     * Set TicketFooterNotes value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\ArrayType\ArrayOfTicketFooterNote $ticketFooterNotes
     * @return \patest\StructType\TicketFooterNoteOverride
     */
    public function setTicketFooterNotes(\patest\ArrayType\ArrayOfTicketFooterNote $ticketFooterNotes = null)
    {
        if (is_null($ticketFooterNotes) || (is_array($ticketFooterNotes) && empty($ticketFooterNotes))) {
            unset($this->TicketFooterNotes);
        } else {
            $this->TicketFooterNotes = $ticketFooterNotes;
        }
        return $this;
    }
}
