Passed
Push — main ( f8d78a...6afd83 )
by Lode
01:12 queued 12s
created

AtomicOperationsExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 17
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNamespace() 0 2 1
A getOfficialLink() 0 2 1
1
<?php
2
3
namespace alsvanzelf\jsonapi\extensions;
4
5
use alsvanzelf\jsonapi\interfaces\ExtensionInterface;
6
7
/**
8
 * atomic operations provide a means to perform multiple "operations" in a linear and atomic manner
9
 * 
10
 * @see https://jsonapi.org/ext/atomic/
11
 * 
12
 * @see AtomicOperationsDocument
13
 */
14
class AtomicOperationsExtension implements ExtensionInterface {
15
	/**
16
	 * ExtensionInterface
17
	 */
18
	
19
	/**
20
	 * @inheritDoc
21
	 */
22 2
	public function getOfficialLink() {
23 2
		return 'https://jsonapi.org/ext/atomic/';
24
	}
25
	
26
	/**
27
	 * @inheritDoc
28
	 */
29 2
	public function getNamespace() {
30 2
		return 'atomic';
31
	}
32
}
33