summaryrefslogtreecommitdiff
path: root/demos/soap/protected/webservices/SimpleService.php
blob: 10d793f56f5f029c0cfeaeea95df58cb7e67a523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

class SimpleService
{
	/**
	 * Highlights a string as php code
	 * @param string $input The php code to highlight
	 * @return string The highlighted text.
	 * @soapmethod
	 */
	public function highlight($input)
	{
		return highlight_string($input, true);
	}

	/**
	 * Simply add two operands
	 * @param int $a
	 * @param int $b
	 * @return int The result
	 * @soapmethod
	 */
	public function add($a, $b)
	{
		return $a + $b;
	}
}