<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for NumerIPozycjaReceptyPapierowejMT StructType
 * Meta information extracted from the WSDL
 * - documentation: Numer i pozycja recepty papierowej.
 * @subpackage Structs
 */
class NumerIPozycjaReceptyPapierowejMT extends AbstractStructBase
{
    /**
     * The numerReceptyPapierowej
     * Meta information extracted from the WSDL
     * - documentation: Numer recepty papierowej.
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $numerReceptyPapierowej;
    /**
     * The numerPozycjiReceptyPapierowej
     * Meta information extracted from the WSDL
     * - documentation: Numer pozycji recepty papierowej.
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $numerPozycjiReceptyPapierowej;
    /**
     * Constructor method for NumerIPozycjaReceptyPapierowejMT
     * @uses NumerIPozycjaReceptyPapierowejMT::setNumerReceptyPapierowej()
     * @uses NumerIPozycjaReceptyPapierowejMT::setNumerPozycjiReceptyPapierowej()
     * @param string $numerReceptyPapierowej
     * @param int $numerPozycjiReceptyPapierowej
     */
    public function __construct($numerReceptyPapierowej = null, $numerPozycjiReceptyPapierowej = null)
    {
        $this
            ->setNumerReceptyPapierowej($numerReceptyPapierowej)
            ->setNumerPozycjiReceptyPapierowej($numerPozycjiReceptyPapierowej);
    }
    /**
     * Get numerReceptyPapierowej value
     * @return string
     */
    public function getNumerReceptyPapierowej()
    {
        return $this->numerReceptyPapierowej;
    }
    /**
     * Set numerReceptyPapierowej value
     * @param string $numerReceptyPapierowej
     * @return NumerIPozycjaReceptyPapierowejMT
     */
    public function setNumerReceptyPapierowej($numerReceptyPapierowej = null)
    {
        // validation for constraint: string
        if (!is_null($numerReceptyPapierowej) && !is_string($numerReceptyPapierowej)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($numerReceptyPapierowej, true), gettype($numerReceptyPapierowej)), __LINE__);
        }
        $this->numerReceptyPapierowej = $numerReceptyPapierowej;
        return $this;
    }
    /**
     * Get numerPozycjiReceptyPapierowej value
     * @return int
     */
    public function getNumerPozycjiReceptyPapierowej()
    {
        return $this->numerPozycjiReceptyPapierowej;
    }
    /**
     * Set numerPozycjiReceptyPapierowej value
     * @param int $numerPozycjiReceptyPapierowej
     * @return NumerIPozycjaReceptyPapierowejMT
     */
    public function setNumerPozycjiReceptyPapierowej($numerPozycjiReceptyPapierowej = null)
    {
        // validation for constraint: int
        if (!is_null($numerPozycjiReceptyPapierowej) && !(is_int($numerPozycjiReceptyPapierowej) || ctype_digit($numerPozycjiReceptyPapierowej))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($numerPozycjiReceptyPapierowej, true), gettype($numerPozycjiReceptyPapierowej)), __LINE__);
        }
        $this->numerPozycjiReceptyPapierowej = $numerPozycjiReceptyPapierowej;
        return $this;
    }
}
