/** * Initialize the class and set its properties. * * @since 1.0.0 * @var string $plugin_slug The name of the plugin. * @var string $version The version of this plugin. */ public function __construct($plugin) { $this->plugin = $plugin; $this->plugin_slug = $this->plugin->get('slug'); $this->plugin_name = $this->plugin->get('name'); $this->version = $this->plugin->get('version'); }