File "PluggableFactoryTrait.php"
Full Path: /home2/sdektunc/cepali.edu.mx/wp-content/plugins/smart-slider-3/Nextend/Framework/Pattern/PluggableFactoryTrait.php
File size: 488 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Nextend\Framework\Pattern;
trait PluggableFactoryTrait {
use SingletonTrait;
private static $types = array();
public static function addType($name, $className) {
self::$types[$name] = $className;
}
public static function getType($name) {
if (isset(self::$types[$name])) {
return self::$types[$name];
}
return false;
}
public static function getTypes() {
return self::$types;
}
}