Passed
Pull Request — main (#66)
by Lode
02:46
created

AtomicOperationsExtension::getNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
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