File: tests/resources/generated/ValidApiOffer.php

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP SOAP Package Generator  >  tests/resources/generated/ValidApiOffer.php  >  Download  
File: tests/resources/generated/ValidApiOffer.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP SOAP Package Generator
Generate package to call SOAP services using WSDL
Author: By
Last change:
Date: 5 years ago
Size: 2,587 bytes
 

Contents

Class file image Download
<?php

namespace Api\StructType;

use \
WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for offer StructType
 * Meta informations extracted from the WSDL
 * - nillable: true
 * - type: tns:offer
 * @package Api
 * @subpackage Structs
 * @release 1.1.0
 */
class ApiOffer extends ApiOrder
{
   
/**
     * The offerClassMember
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
   
public $offerClassMember;
   
/**
     * The offer
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \Api\StructType\ApiOffer
     */
   
public $offer;
   
/**
     * Constructor method for offer
     * @uses ApiOffer::setOfferClassMember()
     * @uses ApiOffer::setOffer()
     * @param string $offerClassMember
     * @param \Api\StructType\ApiOffer $offer
     */
   
public function __construct($offerClassMember = null, \Api\StructType\ApiOffer $offer = null)
    {
       
$this
           
->setOfferClassMember($offerClassMember)
            ->
setOffer($offer);
    }
   
/**
     * Get offerClassMember value
     * @return string|null
     */
   
public function getOfferClassMember()
    {
        return
$this->offerClassMember;
    }
   
/**
     * Set offerClassMember value
     * @param string $offerClassMember
     * @return \Api\StructType\ApiOffer
     */
   
public function setOfferClassMember($offerClassMember = null)
    {
       
$this->offerClassMember = $offerClassMember;
        return
$this;
    }
   
/**
     * Get offer value
     * @return \Api\StructType\ApiOffer|null
     */
   
public function getOffer()
    {
        return
$this->offer;
    }
   
/**
     * Set offer value
     * @param \Api\StructType\ApiOffer $offer
     * @return \Api\StructType\ApiOffer
     */
   
public function setOffer(\Api\StructType\ApiOffer $offer = null)
    {
       
$this->offer = $offer;
        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 \Api\StructType\ApiOffer
     */
   
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__;
    }
}


For more information send a message to info at phpclasses dot org.