KeyConditionExpression   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSupportedOperators() 0 10 1
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