<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.PrintableItem.GuidanceItem StructType
 * @subpackage Structs
 */
class Printing_PrintableItem_GuidanceItem extends Printing_PrintableItem_BasketItemBase
{
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $Description;
    /**
     * The GuideRequest
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Printing_PrintableItem_GuideRequest
     */
    public $GuideRequest;
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $Name;
    /**
     * Constructor method for Printing.PrintableItem.GuidanceItem
     * @uses Printing_PrintableItem_GuidanceItem::setDescription()
     * @uses Printing_PrintableItem_GuidanceItem::setGuideRequest()
     * @uses Printing_PrintableItem_GuidanceItem::setName()
     * @param \patest\StructType\GlobalString $description
     * @param \patest\StructType\Printing_PrintableItem_GuideRequest $guideRequest
     * @param \patest\StructType\GlobalString $name
     */
    public function __construct(\patest\StructType\GlobalString $description = null, \patest\StructType\Printing_PrintableItem_GuideRequest $guideRequest = null, \patest\StructType\GlobalString $name = null)
    {
        $this
            ->setDescription($description)
            ->setGuideRequest($guideRequest)
            ->setName($name);
    }
    /**
     * Get Description 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\GlobalString|null
     */
    public function getDescription()
    {
        return isset($this->Description) ? $this->Description : null;
    }
    /**
     * Set Description 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\GlobalString $description
     * @return \patest\StructType\Printing_PrintableItem_GuidanceItem
     */
    public function setDescription(\patest\StructType\GlobalString $description = null)
    {
        if (is_null($description) || (is_array($description) && empty($description))) {
            unset($this->Description);
        } else {
            $this->Description = $description;
        }
        return $this;
    }
    /**
     * Get GuideRequest 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_GuideRequest|null
     */
    public function getGuideRequest()
    {
        return isset($this->GuideRequest) ? $this->GuideRequest : null;
    }
    /**
     * Set GuideRequest 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_GuideRequest $guideRequest
     * @return \patest\StructType\Printing_PrintableItem_GuidanceItem
     */
    public function setGuideRequest(\patest\StructType\Printing_PrintableItem_GuideRequest $guideRequest = null)
    {
        if (is_null($guideRequest) || (is_array($guideRequest) && empty($guideRequest))) {
            unset($this->GuideRequest);
        } else {
            $this->GuideRequest = $guideRequest;
        }
        return $this;
    }
    /**
     * Get Name 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\GlobalString|null
     */
    public function getName()
    {
        return isset($this->Name) ? $this->Name : null;
    }
    /**
     * Set Name 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\GlobalString $name
     * @return \patest\StructType\Printing_PrintableItem_GuidanceItem
     */
    public function setName(\patest\StructType\GlobalString $name = null)
    {
        if (is_null($name) || (is_array($name) && empty($name))) {
            unset($this->Name);
        } else {
            $this->Name = $name;
        }
        return $this;
    }
}
