<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DokumentAnulowaniaReceptyMT StructType
 * Meta information extracted from the WSDL
 * - documentation: Dokument anulowania recepty.
 * @subpackage Structs
 */
class DokumentAnulowaniaReceptyMT extends AbstractStructBase
{
    /**
     * The tresc
     * Meta information extracted from the WSDL
     * - documentation: Treść dokumentu anulowania recepty (XML, HL7 CDA), zakodowana za pomocą base64.
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $tresc;
    /**
     * Constructor method for DokumentAnulowaniaReceptyMT
     * @uses DokumentAnulowaniaReceptyMT::setTresc()
     * @param string $tresc
     */
    public function __construct($tresc = null)
    {
        $this
            ->setTresc($tresc);
    }
    /**
     * Get tresc value
     * @return string
     */
    public function getTresc()
    {
        return $this->tresc;
    }
    /**
     * Set tresc value
     * @param string $tresc
     * @return DokumentAnulowaniaReceptyMT
     */
    public function setTresc($tresc = null)
    {
        // validation for constraint: string
        if (!is_null($tresc) && !is_string($tresc)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tresc, true), gettype($tresc)), __LINE__);
        }
        $this->tresc = $tresc;
        return $this;
    }
}
