<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AccessorialItem StructType
 * Meta informations extracted from the WSDL
 * - nillable: true
 * - type: tns:AccessorialItem
 * @subpackage Structs
 */
class AccessorialItem extends AbstractStructBase
{
    /**
     * The Code
     * Meta informations extracted from the WSDL
     * - nillable: true
     * @var string
     */
    public $Code;
    /**
     * The Description
     * Meta informations extracted from the WSDL
     * - nillable: true
     * @var string
     */
    public $Description;
    /**
     * The Charge
     * @var float
     */
    public $Charge;
    /**
     * Constructor method for AccessorialItem
     * @uses AccessorialItem::setCode()
     * @uses AccessorialItem::setDescription()
     * @uses AccessorialItem::setCharge()
     * @param string $code
     * @param string $description
     * @param float $charge
     */
    public function __construct($code = null, $description = null, $charge = null)
    {
        $this
            ->setCode($code)
            ->setDescription($description)
            ->setCharge($charge);
    }
    /**
     * Get Code value
     * @return string|null
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string $code
     * @return AccessorialItem
     */
    public function setCode($code = null)
    {
        $this->Code = $code;
        return $this;
    }
    /**
     * Get Description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param string $description
     * @return AccessorialItem
     */
    public function setDescription($description = null)
    {
        $this->Description = $description;
        return $this;
    }
    /**
     * Get Charge value
     * @return float|null
     */
    public function getCharge()
    {
        return $this->Charge;
    }
    /**
     * Set Charge value
     * @param float $charge
     * @return AccessorialItem
     */
    public function setCharge($charge = null)
    {
        $this->Charge = $charge;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return AccessorialItem
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
