| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace cx_newsletter;
- abstract class service
- implements service_interface {
- public function __construct(
- \wpdb $database,
- table_names $tables,
- settings $settings
- ) {
- $this->database = $database;
- $this->tables = $tables;
- $this->settings = $settings;
- }
- protected function get_database() : \wpdb {
- return $this->database;
- }
- protected function get_tables() : table_names {
- return $this->tables;
- }
- protected function get_settings() : settings {
- return $this->settings;
- }
- private \wpdb $database;
- private table_names $tables;
- private settings $settings;
- }
|