<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for MyTicketsCardWithUrls StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:MyTicketsCardWithUrls
 * @subpackage Structs
 */
class MyTicketsCardWithUrls extends MyTicketsCard
{
    /**
     * The BackgroundImageUrl
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $BackgroundImageUrl;
    /**
     * The LogoImageUrl
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $LogoImageUrl;
    /**
     * Constructor method for MyTicketsCardWithUrls
     * @uses MyTicketsCardWithUrls::setBackgroundImageUrl()
     * @uses MyTicketsCardWithUrls::setLogoImageUrl()
     * @param string $backgroundImageUrl
     * @param string $logoImageUrl
     */
    public function __construct($backgroundImageUrl = null, $logoImageUrl = null)
    {
        $this
            ->setBackgroundImageUrl($backgroundImageUrl)
            ->setLogoImageUrl($logoImageUrl);
    }
    /**
     * Get BackgroundImageUrl 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 getBackgroundImageUrl()
    {
        return isset($this->BackgroundImageUrl) ? $this->BackgroundImageUrl : null;
    }
    /**
     * Set BackgroundImageUrl 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 $backgroundImageUrl
     * @return \patest\StructType\MyTicketsCardWithUrls
     */
    public function setBackgroundImageUrl($backgroundImageUrl = null)
    {
        // validation for constraint: string
        if (!is_null($backgroundImageUrl) && !is_string($backgroundImageUrl)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($backgroundImageUrl, true), gettype($backgroundImageUrl)), __LINE__);
        }
        if (is_null($backgroundImageUrl) || (is_array($backgroundImageUrl) && empty($backgroundImageUrl))) {
            unset($this->BackgroundImageUrl);
        } else {
            $this->BackgroundImageUrl = $backgroundImageUrl;
        }
        return $this;
    }
    /**
     * Get LogoImageUrl 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 getLogoImageUrl()
    {
        return isset($this->LogoImageUrl) ? $this->LogoImageUrl : null;
    }
    /**
     * Set LogoImageUrl 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 $logoImageUrl
     * @return \patest\StructType\MyTicketsCardWithUrls
     */
    public function setLogoImageUrl($logoImageUrl = null)
    {
        // validation for constraint: string
        if (!is_null($logoImageUrl) && !is_string($logoImageUrl)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($logoImageUrl, true), gettype($logoImageUrl)), __LINE__);
        }
        if (is_null($logoImageUrl) || (is_array($logoImageUrl) && empty($logoImageUrl))) {
            unset($this->LogoImageUrl);
        } else {
            $this->LogoImageUrl = $logoImageUrl;
        }
        return $this;
    }
}
