getOptions($options, array('2')); $options[0] = intval($options[0]); if ($options[0] < 1) { return bin2hex($buffer); } else { return chunk_split(bin2hex($buffer), $options[0], ' '); } } /** * This method is called when any PluginManager to which the observer * is attached calls PluginManager::notify() * * @param SplSubject $subject The PluginManager notifying the observer * of an update. * * @todo implement * @return void */ public function update (SplSubject $subject) { ; } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return "Hex"; } } ?>