| Current Path : /home/ereika83/www/wp-content/plugins/wpmu-dev-seo/includes/core/models/ |
| Current File : /home/ereika83/www/wp-content/plugins/wpmu-dev-seo/includes/core/models/class-model.php |
<?php
/**
* Abstract Model class for SmartCrawl.
*
* Provides base functionality for all models in SmartCrawl.
*
* @package SmartCrawl
*/
namespace SmartCrawl\Models;
/**
* Abstract Model class.
*
* Provides base functionality for all models in SmartCrawl.
*/
abstract class Model {
/**
* Gets the filter/action name based on supplied suffix
*
* @param string $suffix Action suffix.
*
* @return string
*/
public function get_filter( $suffix ) {
return 'wds-model-' . $this->get_type() . '-' . $suffix;
}
/**
* Returns model type.
*
* Used for filtering and other places where model type distinction is needed.
*
* @return string
*/
abstract public function get_type();
}