<?php

namespace GLS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for cParcelShop2Service Struct
 * @subpackage Structs
 */
class CParcelShop2Service extends AbstractStructBase
{
    /**
     * The srv
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $srv;
    /**
     * Constructor method for cParcelShop2Service
     * @uses CParcelShop2Service::setSrv()
     * @param string $srv
     */
    public function __construct($srv = null)
    {
        $this
            ->setSrv($srv);
    }
    /**
     * Get srv value
     * @return string
     */
    public function getSrv()
    {
        return $this->srv;
    }
    /**
     * Set srv value
     * @param string $srv
     * @return \GLS\CParcelShop2Service
     */
    public function setSrv($srv = null)
    {
        // validation for constraint: string
        if (!is_null($srv) && !is_string($srv)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($srv, true), gettype($srv)), __LINE__);
        }
        $this->srv = $srv;
        return $this;
    }
}
