<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Security.InifinitePeripheralsCardReaderParameters
 * StructType
 * @subpackage Structs
 */
class Security_InifinitePeripheralsCardReaderParameters extends Security_SalePointParametersBase
{
    /**
     * The PrefixString
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $PrefixString;
    /**
     * The SuffixString
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $SuffixString;
    /**
     * Constructor method for Security.InifinitePeripheralsCardReaderParameters
     * @uses Security_InifinitePeripheralsCardReaderParameters::setPrefixString()
     * @uses Security_InifinitePeripheralsCardReaderParameters::setSuffixString()
     * @param string $prefixString
     * @param string $suffixString
     */
    public function __construct($prefixString = null, $suffixString = null)
    {
        $this
            ->setPrefixString($prefixString)
            ->setSuffixString($suffixString);
    }
    /**
     * Get PrefixString value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getPrefixString()
    {
        return isset($this->PrefixString) ? $this->PrefixString : null;
    }
    /**
     * Set PrefixString value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $prefixString
     * @return \patest\StructType\Security_InifinitePeripheralsCardReaderParameters
     */
    public function setPrefixString($prefixString = null)
    {
        // validation for constraint: string
        if (!is_null($prefixString) && !is_string($prefixString)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($prefixString, true), gettype($prefixString)), __LINE__);
        }
        if (is_null($prefixString) || (is_array($prefixString) && empty($prefixString))) {
            unset($this->PrefixString);
        } else {
            $this->PrefixString = $prefixString;
        }
        return $this;
    }
    /**
     * Get SuffixString value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getSuffixString()
    {
        return isset($this->SuffixString) ? $this->SuffixString : null;
    }
    /**
     * Set SuffixString value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $suffixString
     * @return \patest\StructType\Security_InifinitePeripheralsCardReaderParameters
     */
    public function setSuffixString($suffixString = null)
    {
        // validation for constraint: string
        if (!is_null($suffixString) && !is_string($suffixString)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($suffixString, true), gettype($suffixString)), __LINE__);
        }
        if (is_null($suffixString) || (is_array($suffixString) && empty($suffixString))) {
            unset($this->SuffixString);
        } else {
            $this->SuffixString = $suffixString;
        }
        return $this;
    }
}
