File: tests/Fixtures/TestSimpleClassWithoutSoapTagAnnotations.php

Recommend this page to a friend!
  Classes of Protung Dragos  >  PHP WSDL Generator  >  tests/Fixtures/TestSimpleClassWithoutSoapTagAnnotations.php  >  Download  
File: tests/Fixtures/TestSimpleClassWithoutSoapTagAnnotations.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP WSDL Generator
Generate WSDL from PHP classes code
Author: By
Last change:
Date: 5 years ago
Size: 750 bytes
 

Contents

Class file image Download
<?php

namespace PHP2WSDL\Test\Fixtures;

/**
 * Example class without @soap annotation.
 */
class TestSimpleClassWithoutSoapTagAnnotations
{

    public
$param1 = array();
    public
$param2;

   
/**
     * Constructor.
     *
     * @param string $param2
     */
   
function __construct($param2 = "")
    {
       
$this->param2 = $param2;
    }


   
/**
     * Adds two numbers.
     *
     * @param float $p1
     * @param float $p2
     * @return float
     */
   
protected function add($p1, $p2)
    {
        return (
$p1 + $p2);
    }

   
/**
     * Make array.
     *
     * @param mixed $el1
     * @param mixed $el2
     * @return array
     */
   
public function makeArray($el1, $el2)
    {
        return array(
$el1, $el2);
    }
}


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