<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for costPosition Structure
 * @subpackage Structs
 */
class CostPosition extends AbstractStructBase
{
    /**
     * The description
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $description;
    /**
     * The cost
     * @var float
     */
    public $cost;
    /**
     * Constructor method for costPosition
     * @uses CostPosition::setDescription()
     * @uses CostPosition::setCost()
     * @param string $description
     * @param float $cost
     */
    public function __construct($description = null, $cost = null)
    {
        $this
            -&gt;setDescription($description)
            -&gt;setCost($cost);
    }
    /**
     * Get description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this-&gt;description;
    }
    /**
     * Set description value
     * @param string $description
     * @return CostPosition
     */
    public function setDescription($description = null)
    {
        // validation for constraint: string
        if (!is_null($description) &amp;&amp; !is_string($description)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description, true), gettype($description)), __LINE__);
        }
        $this-&gt;description = $description;
        return $this;
    }
    /**
     * Get cost value
     * @return float|null
     */
    public function getCost()
    {
        return $this-&gt;cost;
    }
    /**
     * Set cost value
     * @param float $cost
     * @return CostPosition
     */
    public function setCost($cost = null)
    {
        // validation for constraint: float
        if (!is_null($cost) &amp;&amp; !(is_float($cost) || is_numeric($cost))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($cost, true), gettype($cost)), __LINE__);
        }
        $this-&gt;cost = $cost;
        return $this;
    }
}
</pre></body></html>