Completed
Push — milestone/2_0/container-condit... ( d923a5...7e2a86 )
by
unknown
04:07
created

Broken_Container::is_valid_save()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 1
rs 10
c 0
b 0
f 0
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
	
11
	public function add_fields( $fields ) {}
12
13
	public function init() {}
14
15
	protected function is_valid_save() { return false; }
16
17
	protected function get_environment_for_request() { return array(); }
18
19
	public function is_valid_attach_for_request() { return false; }
20
21
	protected function get_environment_for_object( $object_id ) { return array(); }
22
23
	public function is_valid_attach_for_object( $object_id = null ) { return false; }
24
}
25