1 : <?php
2 :
3 : /**
4 : * XSLT Benchmarking
5 : * @link https://github.com/masicek/XSLT-Benchmarking
6 : * @author Viktor Mašíček <viktor@masicek.net>
7 : * @license "New" BSD License
8 : */
9 :
10 : namespace Tests\XSLTBenchmarking\DriversContainer;
11 :
12 0 : require_once __DIR__ . '/IFooDriver.php';
13 :
14 : /**
15 : * FirstFooDriver
16 : *
17 : * @author Viktor Mašíček <viktor@masicek.net>
18 : */
19 : class FirstFooDriver implements IFooDriver
20 : {
21 :
22 : private $param1;
23 :
24 : private $param2;
25 :
26 :
27 : public function __construct($param1, $param2)
28 : {
29 0 : $this->param1 = $param1;
30 0 : $this->param2 = $param2;
31 0 : }
32 :
33 :
34 : public function methodOne()
35 : {
36 0 : return 'First::method1 (' . $this->param1 . ')';
37 : }
38 :
39 :
40 : public function methodTwo($arg1, $arg2)
41 : {
42 0 : return 'First::method2: (' . $this->param2 . ') ' . $arg1 . ' ' . $arg2;
43 : }
44 :
45 :
46 : }
|