<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getPaczkaKorzysciInfoResponse StructType
 * @subpackage Structs
 */
class GetPaczkaKorzysciInfoResponse extends AbstractStructBase
{
    /**
     * The status
     * @var string
     */
    public $status;
    /**
     * The idKarta
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $idKarta;
    /**
     * The info
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var InfoPaczkaKorzysciType
     */
    public $info;
    /**
     * The error
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var ErrorType[]
     */
    public $error;
    /**
     * Constructor method for getPaczkaKorzysciInfoResponse
     * @uses GetPaczkaKorzysciInfoResponse::setStatus()
     * @uses GetPaczkaKorzysciInfoResponse::setIdKarta()
     * @uses GetPaczkaKorzysciInfoResponse::setInfo()
     * @uses GetPaczkaKorzysciInfoResponse::setError()
     * @param string $status
     * @param int $idKarta
     * @param InfoPaczkaKorzysciType $info
     * @param ErrorType[] $error
     */
    public function __construct($status = null, $idKarta = null, InfoPaczkaKorzysciType $info = null, array $error = array())
    {
        $this
            ->setStatus($status)
            ->setIdKarta($idKarta)
            ->setInfo($info)
            ->setError($error);
    }
    /**
     * Get status value
     * @return string|null
     */
    public function getStatus()
    {
        return $this->status;
    }
    /**
     * Set status value
     * @param string $status
     * @return GetPaczkaKorzysciInfoResponse
     */
    public function setStatus($status = null)
    {
        $this->status = $status;
        return $this;
    }
    /**
     * Get idKarta value
     * @return int|null
     */
    public function getIdKarta()
    {
        return $this->idKarta;
    }
    /**
     * Set idKarta value
     * @param int $idKarta
     * @return GetPaczkaKorzysciInfoResponse
     */
    public function setIdKarta($idKarta = null)
    {
        $this->idKarta = $idKarta;
        return $this;
    }
    /**
     * Get info value
     * @return InfoPaczkaKorzysciType|null
     */
    public function getInfo()
    {
        return $this->info;
    }
    /**
     * Set info value
     * @param InfoPaczkaKorzysciType $info
     * @return GetPaczkaKorzysciInfoResponse
     */
    public function setInfo(InfoPaczkaKorzysciType $info = null)
    {
        $this->info = $info;
        return $this;
    }
    /**
     * Get error value
     * @return ErrorType[]|null
     */
    public function getError()
    {
        return $this->error;
    }
    /**
     * Set error value
     * @param ErrorType[] $error
     * @return GetPaczkaKorzysciInfoResponse
     */
    public function setError(array $error = array())
    {
        $this->error = $error;
        return $this;
    }
    /**
     * Add item to error value
     * @throws \InvalidArgumentException
     * @param ErrorType $item
     * @return GetPaczkaKorzysciInfoResponse
     */
    public function addToError(ErrorType $item)
    {
        $this->error[] = $item;
        return $this;
    }
}
