/** * Returns the Singleton instance of the {@link LexicalUtility}. * * @return the instance of {@link LexicalUtility} * @throws IOException */ public static function getInstance() { if (self::$instance == null) { self::$instance = new Eklekt_Emotion_Utility_Lexical(); } return self::$instance; }
private static function isIntensityModifier($word) { return Eklekt_Emotion_Utility_Lexical::getInstance()->isIntensityModifier($word); }
private function __construct() { $this->lexUtil = Eklekt_Emotion_Utility_Lexical::getInstance(); }