PHP Classes

File: test/ssa/toEndTest/HelloWorld.php

Recommend this page to a friend!
  Packages of thomas   SSA   test/ssa/toEndTest/HelloWorld.php   Download  
File: test/ssa/toEndTest/HelloWorld.php
Role: Example script
Content type: text/plain
Description: Example script
Class: SSA
Call PHP classes from JavaScript on Web pages
Author: By
Last change:
Date: 12 years ago
Size: 793 bytes
 

 

Contents

Class file image Download
<?php

namespace ssa\toEndTest;

use ssa\runner\resolver\Pojo;
use ssa\runner\converter\annotations\Encoder;

/**
 * Description of HelloWorld
 *
 * @author thomas
 */
class HelloWorld {
    
    /**
     * 
     * @param string $yourName
     * @return string 
     */
    public function helloYou($yourName) {
        return 'Hello ' . $yourName.' !!';
    }
    
    /**
     * @Encoder("\ssa\runner\converter\FileDownloadEncoder")
     * 
     * @param file $file1 the file
     */
    public function getFileContent($file1) {
        return $file1;
    }
    
    /**
     * 
     * @param \ssa\runner\resolver\Pojo $pojo
     * @param array(\ssa\runner\resolver\Pojo) $pojos
     */
    public function returnPojo(Pojo $pojo, array $pojos) {
        return array($pojo, $pojos);
    }
}