public function get(string $name = null): \TheCMSThread\Classes\Plugin
    {
        if (empty($name) === false && empty($this->plugins[$name]) === false) {
            return $this->plugins[$name];
        } else {
            throw new \InvalidArgumentException("Plugin not found");
        }
    }
public function get(string $name = null): \TheCMSThread\Classes\Plugin
    {
        if (empty($name) === false && empty($this->plugins[$name]) === false) {
            return $this->plugins[$name];
        } else {
            throw new \InvalidArgumentException("Plugin not found");
        }
    }
public function get ( string $ name = null ) : \ TheCMSThread \ Classes \ Plugin { if ( empty ( $ name ) === false && empty ( $ this -> plugins [ $ name ] ) === false ) { return $ this -> plugins [ $ name ] ; } else { throw new \ InvalidArgumentException ( "Plugin not found" ) ; } }
Returns a plugin object

@param   string  $name   The name the plugin is registered under.

@return  TheCMSThread\Classes\Plugin

@throws  InvalidArgumentException
Returns a plugin object