/** * Create a new instance of the Clockwork wrapper * * Also supports passing a username and a password as first and second parameter, but ONLY when * used in WordPressClockwork for the purposes of converting to an API key. * * @param string key Your Clockwork API Key * @param array options Optional parameters for sending SMS * @author James Inman */ public function __construct($arg1, $arg2 = array()) { if (!isset($arg2) || is_array($arg2)) { parent::__construct($arg1, $arg2); } else { $this->username = $arg1; $this->password = $arg2; } }