BitRightShift::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
/**
4
 * This file is part of the Happyr Doctrine Specification package.
5
 *
6
 * (c) Tobias Nyholm <[email protected]>
7
 *     Kacper Gunia <[email protected]>
8
 *     Peter Gribanov <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Happyr\DoctrineSpecification\Operand;
15
16
@trigger_error('The '.__NAMESPACE__.'\BitRightShift class is deprecated since version 1.1 and will be removed in 2.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
17
18
/**
19
 * @deprecated This class is deprecated since version 1.1 and will be removed in 2.0.
20
 */
21
class BitRightShift extends Bitwise
0 ignored issues
show
Deprecated Code introduced by
The class Happyr\DoctrineSpecification\Operand\Bitwise has been deprecated with message: This class is deprecated since version 1.1 and will be removed in 2.0.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

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

Loading history...
22
{
23
    /**
24
     * @param Operand|string $field
25
     * @param Operand|string $value
26
     */
27
    public function __construct($field, $value)
28
    {
29
        parent::__construct(self::B_RS, $field, $value);
30
    }
31
}
32