<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for MyTicketsCardWithUrlsAndAdditionalNote StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:MyTicketsCardWithUrlsAndAdditionalNote
 * @subpackage Structs
 */
class MyTicketsCardWithUrlsAndAdditionalNote extends ExtensibleDataContract
{
    /**
     * The AdditionalTicketBackNotes
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\AdditionalTicketBackNotes
     */
    public $AdditionalTicketBackNotes;
    /**
     * The MyTicketsCardWithUrls
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\MyTicketsCardWithUrls
     */
    public $MyTicketsCardWithUrls;
    /**
     * Constructor method for MyTicketsCardWithUrlsAndAdditionalNote
     * @uses MyTicketsCardWithUrlsAndAdditionalNote::setAdditionalTicketBackNotes()
     * @uses MyTicketsCardWithUrlsAndAdditionalNote::setMyTicketsCardWithUrls()
     * @param \patest\StructType\AdditionalTicketBackNotes $additionalTicketBackNotes
     * @param \patest\StructType\MyTicketsCardWithUrls $myTicketsCardWithUrls
     */
    public function __construct(\patest\StructType\AdditionalTicketBackNotes $additionalTicketBackNotes = null, \patest\StructType\MyTicketsCardWithUrls $myTicketsCardWithUrls = null)
    {
        $this
            ->setAdditionalTicketBackNotes($additionalTicketBackNotes)
            ->setMyTicketsCardWithUrls($myTicketsCardWithUrls);
    }
    /**
     * Get AdditionalTicketBackNotes 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\StructType\AdditionalTicketBackNotes|null
     */
    public function getAdditionalTicketBackNotes()
    {
        return isset($this->AdditionalTicketBackNotes) ? $this->AdditionalTicketBackNotes : null;
    }
    /**
     * Set AdditionalTicketBackNotes 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\StructType\AdditionalTicketBackNotes $additionalTicketBackNotes
     * @return \patest\StructType\MyTicketsCardWithUrlsAndAdditionalNote
     */
    public function setAdditionalTicketBackNotes(\patest\StructType\AdditionalTicketBackNotes $additionalTicketBackNotes = null)
    {
        if (is_null($additionalTicketBackNotes) || (is_array($additionalTicketBackNotes) && empty($additionalTicketBackNotes))) {
            unset($this->AdditionalTicketBackNotes);
        } else {
            $this->AdditionalTicketBackNotes = $additionalTicketBackNotes;
        }
        return $this;
    }
    /**
     * Get MyTicketsCardWithUrls 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\StructType\MyTicketsCardWithUrls|null
     */
    public function getMyTicketsCardWithUrls()
    {
        return isset($this->MyTicketsCardWithUrls) ? $this->MyTicketsCardWithUrls : null;
    }
    /**
     * Set MyTicketsCardWithUrls 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\StructType\MyTicketsCardWithUrls $myTicketsCardWithUrls
     * @return \patest\StructType\MyTicketsCardWithUrlsAndAdditionalNote
     */
    public function setMyTicketsCardWithUrls(\patest\StructType\MyTicketsCardWithUrls $myTicketsCardWithUrls = null)
    {
        if (is_null($myTicketsCardWithUrls) || (is_array($myTicketsCardWithUrls) && empty($myTicketsCardWithUrls))) {
            unset($this->MyTicketsCardWithUrls);
        } else {
            $this->MyTicketsCardWithUrls = $myTicketsCardWithUrls;
        }
        return $this;
    }
}
