Completed
Push — main ( 987b6d...0c8bfc )
by
unknown
04:06
created

JsonBodyTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setJsonBody() 0 4 1
A getJsonBody() 0 3 1
1
<?php
2
3
namespace Addwiki\Mediawiki\Api\Client\Rest\Request;
4
5
trait JsonBodyTrait {
6
7
	private $body = null;
8
9
	public function setJsonBody( array $body ): self {
10
		$this->body = $body;
11
		return $this;
12
	}
13
14
	public function getJsonBody(): ?array {
15
		return $this->body;
16
	}
17
18
}
19