Skip to content
Snippets Groups Projects
Commit 11e9354f authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'feature/hookable-object' into 'master'

PluginAccess trait.

See merge request !10
parents 285a13c8 76fcc254
No related branches found
No related tags found
1 merge request!10PluginAccess trait.
Pipeline #7219 failed
<?php
namespace WPDesk\PluginBuilder\Plugin;
trait PluginAccess {
/**
* Plugin.
*
* @var AbstractPlugin
*/
private $plugin;
/**
* Set plugin.
*
* @param AbstractPlugin $plugin Plugin.
*/
public function set_plugin( AbstractPlugin $plugin ) {
$this->plugin = $plugin;
}
/**
* Get plugin.
*
* @return AbstractPlugin
*/
public function get_plugin() {
return $this->plugin;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment