Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/PHP2WSDL/Tests/Fixtures/Example1WithAnnotations.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Protung Dragos  >  PHP WSDL Generator  >  tests/PHP2WSDL/Tests/Fixtures/Example1WithAnnotations.php  >  Download  
File: tests/PHP2WSDL/Tests/Fixtures/Example1WithAnnotations.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP WSDL Generator
Generate WSDL from PHP classes code
Author: By
Last change:
Date: 11 months ago
Size: 743 bytes
 

Contents

Class file image Download
<?php

namespace PHP2WSDL\Tests\Fixtures;

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

    
/**
     * Adds two numbers.
     *
     * @soap
     *
     * @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);
    }
}