<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.PrintableItem.ActivityAttachment StructType
 * @subpackage Structs
 */
class Printing_PrintableItem_ActivityAttachment extends Printing_PrintableItem_Base
{
    /**
     * The Activity
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Printing_PrintableItem_Activity
     */
    public $Activity;
    /**
     * The ActivitySchedule
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Printing_PrintableItem_ActivitySchedule
     */
    public $ActivitySchedule;
    /**
     * The OrderData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Printing_PrintableItem_OrderData
     */
    public $OrderData;
    /**
     * The VisitData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Printing_PrintableItem_OrderVisit
     */
    public $VisitData;
    /**
     * Constructor method for Printing.PrintableItem.ActivityAttachment
     * @uses Printing_PrintableItem_ActivityAttachment::setActivity()
     * @uses Printing_PrintableItem_ActivityAttachment::setActivitySchedule()
     * @uses Printing_PrintableItem_ActivityAttachment::setOrderData()
     * @uses Printing_PrintableItem_ActivityAttachment::setVisitData()
     * @param \patest\StructType\Printing_PrintableItem_Activity $activity
     * @param \patest\StructType\Printing_PrintableItem_ActivitySchedule $activitySchedule
     * @param \patest\StructType\Printing_PrintableItem_OrderData $orderData
     * @param \patest\StructType\Printing_PrintableItem_OrderVisit $visitData
     */
    public function __construct(\patest\StructType\Printing_PrintableItem_Activity $activity = null, \patest\StructType\Printing_PrintableItem_ActivitySchedule $activitySchedule = null, \patest\StructType\Printing_PrintableItem_OrderData $orderData = null, \patest\StructType\Printing_PrintableItem_OrderVisit $visitData = null)
    {
        $this
            ->setActivity($activity)
            ->setActivitySchedule($activitySchedule)
            ->setOrderData($orderData)
            ->setVisitData($visitData);
    }
    /**
     * Get Activity 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\Printing_PrintableItem_Activity|null
     */
    public function getActivity()
    {
        return isset($this->Activity) ? $this->Activity : null;
    }
    /**
     * Set Activity 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\Printing_PrintableItem_Activity $activity
     * @return \patest\StructType\Printing_PrintableItem_ActivityAttachment
     */
    public function setActivity(\patest\StructType\Printing_PrintableItem_Activity $activity = null)
    {
        if (is_null($activity) || (is_array($activity) && empty($activity))) {
            unset($this->Activity);
        } else {
            $this->Activity = $activity;
        }
        return $this;
    }
    /**
     * Get ActivitySchedule 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\Printing_PrintableItem_ActivitySchedule|null
     */
    public function getActivitySchedule()
    {
        return isset($this->ActivitySchedule) ? $this->ActivitySchedule : null;
    }
    /**
     * Set ActivitySchedule 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\Printing_PrintableItem_ActivitySchedule $activitySchedule
     * @return \patest\StructType\Printing_PrintableItem_ActivityAttachment
     */
    public function setActivitySchedule(\patest\StructType\Printing_PrintableItem_ActivitySchedule $activitySchedule = null)
    {
        if (is_null($activitySchedule) || (is_array($activitySchedule) && empty($activitySchedule))) {
            unset($this->ActivitySchedule);
        } else {
            $this->ActivitySchedule = $activitySchedule;
        }
        return $this;
    }
    /**
     * Get OrderData 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\Printing_PrintableItem_OrderData|null
     */
    public function getOrderData()
    {
        return isset($this->OrderData) ? $this->OrderData : null;
    }
    /**
     * Set OrderData 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\Printing_PrintableItem_OrderData $orderData
     * @return \patest\StructType\Printing_PrintableItem_ActivityAttachment
     */
    public function setOrderData(\patest\StructType\Printing_PrintableItem_OrderData $orderData = null)
    {
        if (is_null($orderData) || (is_array($orderData) && empty($orderData))) {
            unset($this->OrderData);
        } else {
            $this->OrderData = $orderData;
        }
        return $this;
    }
    /**
     * Get VisitData 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\Printing_PrintableItem_OrderVisit|null
     */
    public function getVisitData()
    {
        return isset($this->VisitData) ? $this->VisitData : null;
    }
    /**
     * Set VisitData 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\Printing_PrintableItem_OrderVisit $visitData
     * @return \patest\StructType\Printing_PrintableItem_ActivityAttachment
     */
    public function setVisitData(\patest\StructType\Printing_PrintableItem_OrderVisit $visitData = null)
    {
        if (is_null($visitData) || (is_array($visitData) && empty($visitData))) {
            unset($this->VisitData);
        } else {
            $this->VisitData = $visitData;
        }
        return $this;
    }
}
