Completed
Push — try/capabilities ( 7f65a9...672273 )
by
unknown
19:16 queued 12:21
created

PermissionGranted   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A granted() 0 3 1
A message() 0 3 1
A data() 0 3 1
1
<?php
2
/**
3
 * A convenience class representing a permission which has been granted
4
 *
5
 * @package automattic/jetpack-capabilities
6
 */
7
8
namespace Automattic\Jetpack\Capabilities;
9
10
// phpcs:ignore Squiz.Commenting.ClassComment.Missing
11
class PermissionGranted implements Permission {
12
13
	// phpcs:ignore Squiz.Commenting.FunctionComment.Missing
14
	public function granted() {
15
		return true;
16
	}
17
18
	// phpcs:ignore Squiz.Commenting.FunctionComment.Missing
19
	public function message() {
20
		return null;
21
	}
22
23
	// phpcs:ignore Squiz.Commenting.FunctionComment.Missing
24
	public function data() {
25
		return null;
26
	}
27
}
28