<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for DokumentRealizacjiReceptyMT StructType
 * Meta information extracted from the WSDL
 * - documentation: Dokument realizacji recepty.
 * @subpackage Structs
 */
class DokumentRealizacjiReceptyMT extends AbstractStructBase
{
    /**
     * The tresc
     * Meta information extracted from the WSDL
     * - documentation: Treść dokumentu realizacji recepty (XML, HL7 CDA), zakodowana za pomocą base64.
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $tresc;
    /**
     * Constructor method for DokumentRealizacjiReceptyMT
     * @uses DokumentRealizacjiReceptyMT::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 DokumentRealizacjiReceptyMT
     */
    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;
    }
}
