File tree 2 files changed +7
-5
lines changed
lib/internal/Magento/Framework/DB
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 21
21
use Magento \Framework \DB \Query \Generator as QueryGenerator ;
22
22
use Magento \Framework \DB \Select ;
23
23
use Magento \Framework \DB \SelectFactory ;
24
+ use Magento \Framework \DB \Sql \Expression ;
24
25
use Magento \Framework \DB \Statement \Parameter ;
25
26
use Magento \Framework \Exception \LocalizedException ;
26
27
use Magento \Framework \Phrase ;
@@ -1511,10 +1512,10 @@ public function select()
1511
1512
* Method revrited for handle empty arrays in value param
1512
1513
*
1513
1514
* @param string $text The text with a placeholder.
1514
- * @param mixed $value The value to quote.
1515
- * @param string $type OPTIONAL SQL datatype
1515
+ * @param array|null|int|string|float|Expression|Select|\DateTimeInterface $value The value to quote.
1516
+ * @param int| string|null $type OPTIONAL SQL datatype of the given value e.g. Zend_Db::FLOAT_TYPE or "INT"
1516
1517
* @param integer $count OPTIONAL count of placeholders to replace
1517
- * @return string An SQL-safe quoted value placed into the orignal text.
1518
+ * @return string An SQL-safe quoted value placed into the original text.
1518
1519
*/
1519
1520
public function quoteInto ($ text , $ value , $ type = null , $ count = null )
1520
1521
{
Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \App \ResourceConnection ;
9
9
use Magento \Framework \DB \Adapter \AdapterInterface ;
10
+ use Magento \Framework \DB \Sql \Expression ;
10
11
11
12
/**
12
13
* Class for SQL SELECT generation and results.
@@ -108,8 +109,8 @@ public function __construct(
108
109
* </code>
109
110
*
110
111
* @param string $cond The WHERE condition.
111
- * @param string| array|null $value OPTIONAL An optional single or array value to quote into the condition .
112
- * @param string| int|null $type OPTIONAL The type of the given value
112
+ * @param array|null|int|string|float|Expression|Select|\DateTimeInterface $value The value to quote.
113
+ * @param int|string| null $type OPTIONAL SQL datatype of the given value e.g. Zend_Db::FLOAT_TYPE or "INT"
113
114
* @return \Magento\Framework\DB\Select
114
115
*/
115
116
public function where ($ cond , $ value = null , $ type = null )
You can’t perform that action at this time.
0 commit comments