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

PermissionGranted::message()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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