Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
18 | 1 | public function fulfillable_to_foreign( Fulfillable $fulfillable ) { |
|
19 | if ( is_a( $fulfillable, 'Carbon_Fields\\Container\\Condition\\Condition' ) ) { |
||
20 | return $this->condition_to_foreign( $fulfillable ); |
||
21 | } |
||
22 | |||
23 | if ( is_a( $fulfillable, 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable_Collection' ) ) { |
||
24 | return $this->fulfillable_collection_to_foreign( $fulfillable ); |
||
25 | } |
||
26 | |||
27 | Incorrect_Syntax_Exception::raise( 'Attempted to translate an unsupported object: ' . print_r( $fulfillable, true ) ); |
||
28 | 1 | } |
|
29 | |||
54 |