KeyConditionExpression::getSupportedOperators()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 10
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Hoooklife\DynamodbPodm\Parsers;
4
5
use Hoooklife\DynamodbPodm\ComparisonOperator;
6
7
class KeyConditionExpression extends ConditionExpression
8
{
9
    protected function getSupportedOperators()
10
    {
11
        return array_only(static::OPERATORS, [
0 ignored issues
show
Deprecated Code introduced by
The function array_only() has been deprecated: Arr::only() should be used directly instead. Will be removed in Laravel 5.9. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

11
        return /** @scrutinizer ignore-deprecated */ array_only(static::OPERATORS, [

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
12
            ComparisonOperator::EQ,
13
            ComparisonOperator::LE,
14
            ComparisonOperator::LT,
15
            ComparisonOperator::GE,
16
            ComparisonOperator::GT,
17
            ComparisonOperator::BEGINS_WITH,
18
            ComparisonOperator::BETWEEN,
19
        ]);
20
    }
21
}
22