<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OdczytKluczyReceptUslugobiorcyMT StructType
 * Meta information extracted from the WSDL
 * - documentation: Wrapper dla operacji odczytu kluczy recept usługobiorcy zwierający podpisany przez usługobiorcę dokument.
 * @subpackage Structs
 */
class OdczytKluczyReceptUslugobiorcyMT extends AbstractStructBase
{
    /**
     * The podpisanyDokument
     * Meta information extracted from the WSDL
     * - documentation: Dokument typu DokumentPodpisanyEDowodemMT zdefiniowany w przestrzeni nazw http://csioz.gov.pl/p1/erecepta/dokument/v20200505. Zawartość dokument zakodowana jest kodowaniem Base64.
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $podpisanyDokument;
    /**
     * Constructor method for OdczytKluczyReceptUslugobiorcyMT
     * @uses OdczytKluczyReceptUslugobiorcyMT::setPodpisanyDokument()
     * @param string $podpisanyDokument
     */
    public function __construct($podpisanyDokument = null)
    {
        $this
            ->setPodpisanyDokument($podpisanyDokument);
    }
    /**
     * Get podpisanyDokument value
     * @return string|null
     */
    public function getPodpisanyDokument()
    {
        return $this->podpisanyDokument;
    }
    /**
     * Set podpisanyDokument value
     * @param string $podpisanyDokument
     * @return OdczytKluczyReceptUslugobiorcyMT
     */
    public function setPodpisanyDokument($podpisanyDokument = null)
    {
        // validation for constraint: string
        if (!is_null($podpisanyDokument) && !is_string($podpisanyDokument)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($podpisanyDokument, true), gettype($podpisanyDokument)), __LINE__);
        }
        $this->podpisanyDokument = $podpisanyDokument;
        return $this;
    }
}
