Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | function __construct( $id = 'template_placeholder', $settings = array() ) { |
||
|
|||
17 | |||
18 | $table_settings = array( |
||
19 | 'type' => 'custom', |
||
20 | 'buy_source' => 'https://gravityview.co/pricing/', |
||
21 | 'slug' => '', |
||
22 | 'label' => '', |
||
23 | 'description' => '', |
||
24 | 'logo' => '', |
||
25 | 'price_id' => '', |
||
26 | ); |
||
27 | |||
28 | $settings = wp_parse_args( $settings, $table_settings ); |
||
29 | |||
30 | $this->id = $id; |
||
31 | $this->settings = $settings; |
||
32 | |||
33 | parent::__construct( $id, $settings, array(), array() ); |
||
34 | } |
||
35 | |||
37 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.