Completed
Push — milestone/2.0 ( 8a1186...26a446 )
by
unknown
04:33
created

Broken_Container   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 9
rs 10
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A add_fields() 0 1 1
A init() 0 1 1
A add_template() 0 1 1
A is_valid_attach_for_request() 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 {
0 ignored issues
show
Bug introduced by
There is one abstract method is_valid_attach_for_object in this class; you could implement it, or declare this class as abstract.
Loading history...
10
	protected function add_template( $name, $callback ) {}
11
12
	public function add_fields( $fields ) {}
13
14
	public function init() {}
15
16
	public function is_valid_attach_for_request() { return false; }
17
}
18
19