<?php

namespace Pepitelabs\PWS\EstimatingService;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for FromOnLabelInformation EstimatingService
 * Meta information extracted from the WSDL
 * - documentation: ReceiverInformation
 * - nillable: true
 * - type: tns:FromOnLabelInformation
 * @subpackage Structs
 */
class FromOnLabelInformation extends AbstractStructBase
{
    /**
     * The Address
     * Meta information extracted from the WSDL
     * - documentation: Address - Address
     * - nillable: true
     * @var \Pepitelabs\PWS\EstimatingService\Address
     */
    public $Address;
    /**
     * Constructor method for FromOnLabelInformation
     * @uses FromOnLabelInformation::setAddress()
     * @param \Pepitelabs\PWS\EstimatingService\Address $address
     */
    public function __construct(\Pepitelabs\PWS\EstimatingService\Address $address = null)
    {
        $this
            ->setAddress($address);
    }
    /**
     * Get Address value
     * @return \Pepitelabs\PWS\EstimatingService\Address|null
     */
    public function getAddress()
    {
        return $this->Address;
    }
    /**
     * Set Address value
     * @param \Pepitelabs\PWS\EstimatingService\Address $address
     * @return \Pepitelabs\PWS\EstimatingService\FromOnLabelInformation
     */
    public function setAddress(\Pepitelabs\PWS\EstimatingService\Address $address = null)
    {
        $this->Address = $address;
        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 \Pepitelabs\PWS\EstimatingService\FromOnLabelInformation
     */
    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__;
    }
}
