@@ -43,14 +43,13 @@ class SearchController{
43
43
/**
44
44
* @var string Search query algorithm that needs to be used
45
45
*/
46
- private string $ searchAlgorithm ;
46
+ private string $ searchAlgorithm = '' ;
47
47
48
48
/**
49
49
* @var string|array Search request query value
50
50
*/
51
51
private string |array $ searchQuery = '' ;
52
52
53
-
54
53
/**
55
54
* @var array MYSQL database table rows to search form
56
55
*/
@@ -64,19 +63,25 @@ class SearchController{
64
63
/**
65
64
* @var string SQL LIKE query operator to be used
66
65
*/
67
- private string $ operators ;
66
+ private string $ operators = '' ;
68
67
69
68
/**
70
69
* @var string SQL query prefix
71
70
*/
72
- private string $ queryStart ;
71
+ private string $ queryStart = '' ;
73
72
74
73
/**
75
74
* @var string SQL query suffix
76
75
*/
77
- private string $ queryEnd ;
76
+ private string $ queryEnd = '' ;
78
77
79
- public function __construct (string $ algorithm = self ::OR ) {
78
+ /**
79
+ * Initializes SearchController constructor
80
+ *
81
+ * @param string $algorithm search algorithm
82
+ */
83
+ public function __construct (string $ algorithm = self ::OR )
84
+ {
80
85
$ this ->searchAlgorithm = $ algorithm ;
81
86
$ this ->operators = self ::END_WITH_QUERY ;
82
87
$ this ->queryStart = self ::LIKE ;
0 commit comments