File: tests/resources/generated/ValidApiDs_weblog_formats.php

Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP SOAP Package Generator  >  tests/resources/generated/ValidApiDs_weblog_formats.php  >  Download  
File: tests/resources/generated/ValidApiDs_weblog_formats.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: issue-35 - fix #35: allow property value to be null
when value should be an enumeration value
Date: 5 years ago
Size: 2,082 bytes
 

Contents

Class file image Download
<?php

namespace Api\EnumType;

/**
 * This class stands for ds_weblog_formats EnumType
 * @package Api
 * @subpackage Enumerations
 * @release 1.1.0
 */
class ApiDs_weblog_formats
{
   
/**
     * Constant for value 'NCSA Common (Apache default)'
     * @return string 'NCSA Common (Apache default)'
     */
   
const VALUE_NCSA_COMMON_APACHE_DEFAULT_ = 'NCSA Common (Apache default)';
   
/**
     * Constant for value 'NCSA Combined (Apache)'
     * @return string 'NCSA Combined (Apache)'
     */
   
const VALUE_NCSA_COMBINED_APACHE_ = 'NCSA Combined (Apache)';
   
/**
     * Constant for value 'W3C Extended (IIS 4.0 and later)'
     * @return string 'W3C Extended (IIS 4.0 and later)'
     */
   
const VALUE_W3C_EXTENDED_IIS_4_0_AND_LATER_ = 'W3C Extended (IIS 4.0 and later)';
   
/**
     * Constant for value 'Microsoft IIS Log (IIS 3 and earlier)'
     * @return string 'Microsoft IIS Log (IIS 3 and earlier)'
     */
   
const VALUE_MICROSOFT_IIS_LOG_IIS_3_AND_EARLIER_ = 'Microsoft IIS Log (IIS 3 and earlier)';
   
/**
     * Return true if value is allowed
     * @uses self::getValidValues()
     * @param mixed $value value
     * @return bool true|false
     */
   
public static function valueIsValid($value)
    {
        return (
$value === null) || in_array($value, self::getValidValues(), true);
    }
   
/**
     * Return allowed values
     * @uses self::VALUE_NCSA_COMMON_APACHE_DEFAULT_
     * @uses self::VALUE_NCSA_COMBINED_APACHE_
     * @uses self::VALUE_W3C_EXTENDED_IIS_4_0_AND_LATER_
     * @uses self::VALUE_MICROSOFT_IIS_LOG_IIS_3_AND_EARLIER_
     * @return string[]
     */
   
public static function getValidValues()
    {
        return array(
           
self::VALUE_NCSA_COMMON_APACHE_DEFAULT_,
           
self::VALUE_NCSA_COMBINED_APACHE_,
           
self::VALUE_W3C_EXTENDED_IIS_4_0_AND_LATER_,
           
self::VALUE_MICROSOFT_IIS_LOG_IIS_3_AND_EARLIER_,
        );
    }
   
/**
     * 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.