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

JsonBodyTrait::getJsonBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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