<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.PrintableItem.MatchingGiftDonationThankYouLetter
 * StructType
 * @subpackage Structs
 */
class Printing_PrintableItem_MatchingGiftDonationThankYouLetter extends Printing_PrintableItem_MatchingGiftDonationInfo
{
    /**
     * The Matcher
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Printing_PrintableItem_MatchingGiftMatcher
     */
    public $Matcher;
    /**
     * Constructor method for Printing.PrintableItem.MatchingGiftDonationThankYouLetter
     * @uses Printing_PrintableItem_MatchingGiftDonationThankYouLetter::setMatcher()
     * @param \patest\StructType\Printing_PrintableItem_MatchingGiftMatcher $matcher
     */
    public function __construct(\patest\StructType\Printing_PrintableItem_MatchingGiftMatcher $matcher = null)
    {
        $this
            ->setMatcher($matcher);
    }
    /**
     * Get Matcher 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_MatchingGiftMatcher|null
     */
    public function getMatcher()
    {
        return isset($this->Matcher) ? $this->Matcher : null;
    }
    /**
     * Set Matcher 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_MatchingGiftMatcher $matcher
     * @return \patest\StructType\Printing_PrintableItem_MatchingGiftDonationThankYouLetter
     */
    public function setMatcher(\patest\StructType\Printing_PrintableItem_MatchingGiftMatcher $matcher = null)
    {
        if (is_null($matcher) || (is_array($matcher) && empty($matcher))) {
            unset($this->Matcher);
        } else {
            $this->Matcher = $matcher;
        }
        return $this;
    }
}
