<?php

namespace WsdlGen\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CelsiusToFahrenheitResponse Structs
 * @subpackage Structs
 * @test code-gen-2022-01-27
 */
class CelsiusToFahrenheitResponse extends AbstractStructBase
{
    /**
     * The CelsiusToFahrenheitResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $CelsiusToFahrenheitResult;
    /**
     * Constructor method for CelsiusToFahrenheitResponse
     * @uses CelsiusToFahrenheitResponse::setCelsiusToFahrenheitResult()
     * @param string $celsiusToFahrenheitResult
     */
    public function __construct($celsiusToFahrenheitResult = null)
    {
        $this
            ->setCelsiusToFahrenheitResult($celsiusToFahrenheitResult);
    }
    /**
     * Get CelsiusToFahrenheitResult value
     * @return string|null
     */
    public function getCelsiusToFahrenheitResult()
    {
        return $this->CelsiusToFahrenheitResult;
    }
    /**
     * Set CelsiusToFahrenheitResult value
     * @param string $celsiusToFahrenheitResult
     * @return \WsdlGen\Structs\CelsiusToFahrenheitResponse
     */
    public function setCelsiusToFahrenheitResult($celsiusToFahrenheitResult = null)
    {
        // validation for constraint: string
        if (!is_null($celsiusToFahrenheitResult) && !is_string($celsiusToFahrenheitResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($celsiusToFahrenheitResult, true), gettype($celsiusToFahrenheitResult)), __LINE__);
        }
        $this->CelsiusToFahrenheitResult = $celsiusToFahrenheitResult;
        return $this;
    }
}
