-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetResults.php
44 lines (42 loc) · 1.05 KB
/
GetResults.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Created by IntelliJ IDEA.
* User: solomontsao
* Date: 10/28/17
* Time: 6:15 AM
*/
namespace switchstatements;
class GetResults
{
public function GetResults($type="SearchResults")
{
$results = null;
switch ($type)
{
case "SearchResults":
//// search product lists.
/// ///maybe 100 lines of code
$results = 'return a list of products by searching key words.';
break;
case "Favorites":
//// search product lists.
/// ///maybe 200 lines of code
$results = 'return a list of user\'s favorites products.';
break;
case "WishList":
//// search product lists.
/// ///maybe 300 lines of code
$results = 'return a list of user\'s whishlist products.';
break;
}
return $results;
}
/////another whatever 10k lines of code
/// asdfsadfsadf
/// fasdfsadf
/// sadfasd
/// dfasdfasdf
/// asdfasdfasdf
/// asdfasdfas
/// asdfasdfasdf
}