DebugPermission   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A checkForDeveloperRole() 0 2 1
A __construct() 0 2 1
A getDescription() 0 2 1
1
<?php
2
3
/**
4
 * @file DebugPermission.php
5
 * @brief This file contains the DebugPermission class.
6
 * @details
7
 * @author Filippo F. Fadda
8
 */
9
10
11
//! Development's permissions
12
namespace Daikengo\Permission\Development;
13
14
15
use Daikengo\Permission\AbstractPermission;
16
17
18
/**
19
 * @brief Permission to display information related an internal server error, in case the system throw an exception.
20
 */
21
class DebugPermission extends AbstractPermission {
22
23
24
  public function __construct() {
25
    parent::__construct();
26
  }
27
28
29
  public function getDescription() {
30
    return "The member can use the integrated debugger.";
31
  }
32
33
34
  /**
35
   * @brief A developer can display useful information in case of exception.
36
   * @return bool
37
   */
38
  public function checkForDeveloperRole() {
39
    return TRUE;
40
  }
41
42
}