builder-create-page-trait.php
1 year ago
builder-trait.php
1 year ago
builder-update-page-trait.php
1 year ago
builder-trait.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | namespace JFB_Modules\Onboarding\Builders\Traits; |
| 4 | |
| 5 | trait Builder_Trait { |
| 6 | |
| 7 | protected $form_id = 0; |
| 8 | protected $redirect = ''; |
| 9 | protected $type; |
| 10 | |
| 11 | public function set_form_id( int $form_id ) { |
| 12 | $this->form_id = $form_id; |
| 13 | } |
| 14 | |
| 15 | public function get_form_id(): int { |
| 16 | return $this->form_id; |
| 17 | } |
| 18 | |
| 19 | public function set_redirect_url( string $url ) { |
| 20 | $this->redirect = $url; |
| 21 | } |
| 22 | |
| 23 | public function get_redirect_url(): string { |
| 24 | return $this->redirect; |
| 25 | } |
| 26 | |
| 27 | public function set_builder_type( string $type ) { |
| 28 | $this->type = $type; |
| 29 | } |
| 30 | |
| 31 | public function get_builder_type(): string { |
| 32 | return $this->type; |
| 33 | } |
| 34 | |
| 35 | } |
| 36 |