Example   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
c 0
b 0
f 0
dl 0
loc 13
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_address() 0 2 1
A __construct() 0 3 1
1
<?php declare(strict_types = 1);
0 ignored issues
show
introduced by
Expected 1 line before declare statement, found 0.
Loading history...
2
3
namespace App\Entities;
4
5
use WPSteak\Entities\AbstractPost;
6
7
/** @codeCoverageIgnore */
8
class Example extends AbstractPost {
9
10
	public const POST_TYPE = 'example';
11
12
	protected string $address;
13
14
	public function __construct( \WP_Post $post, string $address ) {
15
		$this->post = $post;
16
		$this->address = $address;
17
	}
18
19
	public function get_address(): string {
20
		return $this->address;
21
	}
22
23
}
24