Completed
Push — milestone/2_0/react-ui ( 321798...c1e1b2 )
by
unknown
14:33 queued 10:17
created

Broken_Container   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 11
rs 10
c 1
b 0
f 1
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A is_valid_attach_for_request() 0 1 1
A add_fields() 0 1 1
A init() 0 1 1
A is_valid_save() 0 1 1
A is_valid_attach_for_object() 0 1 1
1
<?php
2
3
namespace Carbon_Fields\Container;
4
5
/**
6
 * Broken container class.
7
 * Used when a container gets misconfigured.
8
 **/
9
class Broken_Container extends Container {
10
	public function add_fields( $fields ) {}
11
12
	public function init() {}
13
14
	protected function is_valid_save() { return false; }
15
16
	public function is_valid_attach_for_request() { return false; }
17
18
	public function is_valid_attach_for_object( $object_id = null ) { return false; }
19
}
20