Completed
Push — develop ( 39675e...5a1eb7 )
by David
02:50
created

Sync_User_Adapter::is_published()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Wordlift\Dataset;
4
5
use Wordlift\Object_Type_Enum;
6
7
class Sync_User_Adapter extends Abstract_Sync_Object_Adapter {
8
9
	/**
10
	 * Sync_User_Adapter constructor.
11
	 *
12
	 * @param int $user_id
13
	 *
14
	 * @throws \Exception
15
	 */
16
	function __construct( $user_id ) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
		parent::__construct( Object_Type_Enum::USER, $user_id );
18
	}
19
20
	function is_published() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
21
		return true;
22
	}
23
24
	function is_public() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
25
		return true;
26
	}
27
28
}
29