Location: PHPKode > scripts > Singleton Interface > singleton-interface/Singleton/Interface.php
<?php
/**
 * $Id: Singleton.interface.php 289 2006-08-23 06:10:22Z matthieu $
 */
if (!interface_exists('Singleton_Interface')) {
    /**
     * singleton interface
     * @author Matthieu MARY <hide@address.com>
     * @license http://opensource.org/licenses/gpl-license.php GNU Public License
     */
    interface Singleton_Interface
    {
        /**
         * singleton setter.
         * @access public
         * @static
         */
        public static function getInstance();
        /**
         * must override clone method
         * to throw exeption when it's call
         */
        public function __clone();
    }
}
Return current item: Singleton Interface