Operations::getConstants()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace Zend\Firebase\Config;
3
4
/**
5
 *
6
 * Available type of operations
7
 *
8
 * @author Ventimiglia Samuel
9
 * @package Firebase
10
 *
11
 */
12
class Operations
13
{
14
15
    const GET = 'GET';
16
17
    const PUT = 'PUT';
18
19
    const POST = 'POST';
20
21
    const PATCH = 'PATCH';
22
23
    const DELETE = 'DELETE';
24
25
    /**
26
     * Return all constant of class
27
     */
28
    public static function getConstants()
29
    {
30
        $oClass = new \ReflectionClass(__CLASS__);
31
        return $oClass->getConstants();
32
    }
33
}
34